sys.base_exec_prefix

sys.base_exec_prefix Set during Python startup, before site.py is run, to the same value as exec_prefix. If not running in a virtual environment, the values will stay the same; if site.py finds that a virtual environment is in use, the values of prefix and exec_prefix will be changed to point to the virtual environment, whereas base_prefix and base_exec_prefix will remain pointing to the base Python installation (the one which the virtual environment was created from). New in version 3.3.

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.

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.

symtable.SymbolTable.lookup()

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

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.is_optimized()

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

symtable.SymbolTable.get_name()

get_name() Return the table’s name. This is the name of the class if the table is for a class, the name of the function if the table is for a function, or 'top' if the table is global (get_type() returns 'module').

symtable.SymbolTable.get_symbols()

get_symbols() Return a list of Symbol instances for names in the table.