sys.argv

sys.argv The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating system dependent whether this is a full pathname or not). If the command was executed using the -c command line option to the interpreter, argv[0] is set to the string '-c'. If no script name was passed to the Python interpreter, argv[0] is the empty string. To loop over the standard input, or the list of files given on the command line, see the fileinput module.

sys.api_version

sys.api_version The C API version for this interpreter. Programmers may find this useful when debugging version conflicts between Python and extension modules.

sys.abiflags

sys.abiflags On POSIX systems where Python was built with the standard configure script, this contains the ABI flags as specified by PEP 3149. New in version 3.2.

SyntaxWarning

exception SyntaxWarning Base class for warnings about dubious syntax.

SyntaxError

exception SyntaxError Raised when the parser encounters a syntax error. This may occur in an import statement, in a call to the built-in functions exec() or eval(), or when reading the initial script or standard input (also interactively). Instances of this class have attributes filename, lineno, offset and text for easier access to the details. str() of the exception instance returns only the message.

symtable.symtable()

symtable.symtable(code, filename, compile_type) Return the toplevel SymbolTable for the Python source code. filename is the name of the file containing the code. compile_type is like the mode argument to compile().

symtable.SymbolTable.lookup()

lookup(name) Lookup name in the table and return a Symbol instance.

symtable.SymbolTable.is_optimized()

is_optimized() Return True if the locals in this table can be optimized.

symtable.SymbolTable.is_nested()

is_nested() Return True if the block is a nested class or function.

symtable.SymbolTable.has_exec()

has_exec() Return True if the block uses exec.