Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
codeop Namespace Reference

Data Structures

class  Compile
 
class  CommandCompiler
 

Functions

def compile_command
 

Variables

list _features
 
list __all__ = ["compile_command", "Compile", "CommandCompiler"]
 

Function Documentation

def codeop.compile_command (   source,
  filename = "<input>",
  symbol = "single" 
)

Definition at line 106 of file codeop.py.

107 def compile_command(source, filename="<input>", symbol="single"):
108  r"""Compile a command and determine whether it is incomplete.
109 
110  Arguments:
111 
112  source -- the source string; may contain \n characters
113  filename -- optional filename from which source was read; default
114  "<input>"
115  symbol -- optional grammar start symbol; "single" (default) or "eval"
116 
117  Return value / exceptions raised:
118 
119  - Return a code object if the command is complete and valid
120  - Return None if the command is incomplete
121  - Raise SyntaxError, ValueError or OverflowError if the command is a
122  syntax error (OverflowError and ValueError can be produced by
123  malformed literals).
124  """
125  return _maybe_compile(compile, source, filename, symbol)

Variable Documentation

list __all__ = ["compile_command", "Compile", "CommandCompiler"]

Definition at line 64 of file codeop.py.

list _features
Initial value:
1 = [getattr(__future__, fname)
2  for fname in __future__.all_feature_names]

Definition at line 61 of file codeop.py.