symtable.Function

class symtable.Function A namespace for a function or method. This class inherits SymbolTable. get_parameters() Return a tuple containing names of parameters to this function. get_locals() Return a tuple containing names of locals in this function. get_globals() Return a tuple containing names of globals in this function. get_frees() Return a tuple containing names of free variables in this function.

symtable.Function.get_frees()

get_frees() Return a tuple containing names of free variables in this function.

symtable.Function.get_globals()

get_globals() Return a tuple containing names of globals in this function.

symtable.Symbol.get_name()

get_name() Return the symbol’s name.

symtable.Function.get_locals()

get_locals() Return a tuple containing names of locals in this function.

symtable.Function.get_parameters()

get_parameters() Return a tuple containing names of parameters to this function.

symtable.Symbol

class symtable.Symbol An entry in a SymbolTable corresponding to an identifier in the source. The constructor is not public. get_name() Return the symbol’s name. is_referenced() Return True if the symbol is used in its block. is_imported() Return True if the symbol is created from an import statement. is_parameter() Return True if the symbol is a parameter. is_global() Return True if the symbol is global. is_declared_global() Return True if the symbol is decl

super()

super([type[, object-or-type]]) Return a proxy object that delegates method calls to a parent or sibling class of type. This is useful for accessing inherited methods that have been overridden in a class. The search order is same as that used by getattr() except that the type itself is skipped. The __mro__ attribute of the type lists the method resolution search order used by both getattr() and super(). The attribute is dynamic and can change whenever the inheritance hierarchy is updated. If

symbol.sym_name

symbol.sym_name Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated.

sum()

sum(iterable[, start]) Sums start and the items of an iterable from left to right and returns the total. start defaults to 0. The iterable‘s items are normally numbers, and the start value is not allowed to be a string. For some use cases, there are good alternatives to sum(). The preferred, fast way to concatenate a sequence of strings is by calling ''.join(sequence). To add floating point values with extended precision, see math.fsum(). To concatenate a series of iterables, consider using