PyDocs

Nav

Python Language Services

Symbol

  • Symbol(name, flags, namespaces=None, *, module_scope=False)
An entry in a SymbolTable corresponding to an identifier in the source. The constructor is not public.
Members of Symbol

g

get_name
Return a name of a symbol.
get_namespace
Return the single namespace bound to this name.
get_namespaces
Return a list of namespaces bound to this name

i

is_annotated
Return *True* if the symbol is annotated.
is_assigned
Return *True* if a symbol is assigned to.
is_cell
Return *True* if the symbol is a cell variable.
is_comp_cell
Return *True* if the symbol is a cell in an inlined comprehension.
is_comp_iter
Return *True* if the symbol is a comprehension iteration variable.
is_declared_global
Return *True* if the symbol is declared global with a global statement.
is_free
Return *True* if a referenced symbol is not assigned to.
is_free_class
Return *True* if a class-scoped symbol is free from the perspective of a method.
is_global
Return *True* if the symbol is global.
is_imported
Return *True* if the symbol is created from an import statement.
is_local
Return *True* if the symbol is local.
is_namespace
Returns *True* if name binding introduces new namespace.
is_nonlocal
Return *True* if the symbol is nonlocal.
is_parameter
Return *True* if the symbol is a parameter.
is_referenced
Return *True* if the symbol is used in its block.
is_type_parameter
Return *True* if the symbol is a type parameter.
0 Examples
No examples for symtable/Symbol.
See Also
No see-alsos for symtable/Symbol
0 Notes
No notes for Symbol