💾 Archived View for tris.fyi › pydoc › symtable captured on 2022-04-28 at 17:33:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

➡️ Next capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

symtable

Interface to the compiler's internal symbol tables

Classes

Class

get_children(self)
get_id(self)
get_identifiers(self)
get_lineno(self)
get_methods(self)
get_name(self)
get_symbols(self)
get_type(self)
has_children(self)
is_nested(self)
is_optimized(self)
lookup(self, name)

Function

get_children(self)
get_frees(self)
get_globals(self)
get_id(self)
get_identifiers(self)
get_lineno(self)
get_locals(self)
get_name(self)
get_nonlocals(self)
get_parameters(self)
get_symbols(self)
get_type(self)
has_children(self)
is_nested(self)
is_optimized(self)
lookup(self, name)

Symbol

get_name(self)
get_namespace(self)

  Returns the single namespace bound to this name.

          Raises ValueError if the name is bound to multiple namespaces.
        
get_namespaces(self)

  Return a list of namespaces bound to this name
is_annotated(self)
is_assigned(self)
is_declared_global(self)
is_free(self)
is_global(self)

  Return *True* if the sysmbol is global.
        
is_imported(self)
is_local(self)

  Return *True* if the symbol is local.
        
is_namespace(self)

  Returns true if name binding introduces new namespace.

          If the name is used as the target of a function or class
          statement, this will be true.

          Note that a single name can be bound to multiple objects.  If
          is_namespace() is true, the name may also be bound to other
          objects, like an int or list, that does not introduce a new
          namespace.
        
is_nonlocal(self)
is_parameter(self)
is_referenced(self)

SymbolTable

get_children(self)
get_id(self)
get_identifiers(self)
get_lineno(self)
get_name(self)
get_symbols(self)
get_type(self)
has_children(self)
is_nested(self)
is_optimized(self)
lookup(self, name)

SymbolTableFactory

new(self, table, filename)

Functions

symtable

symtable(code, filename, compile_type)

Other members

CELL = 5
DEF_ANNOT = 256
DEF_BOUND = 134
DEF_GLOBAL = 1
DEF_IMPORT = 128
DEF_LOCAL = 2
DEF_NONLOCAL = 8
DEF_PARAM = 4
FREE = 4
GLOBAL_EXPLICIT = 2
GLOBAL_IMPLICIT = 3
LOCAL = 1
SCOPE_MASK = 15
SCOPE_OFF = 11
USE = 16

Modules

weakref