| |
- __builtin__.object
-
- Symbol
- SymbolTable
-
- Class
- Function
class Symbol(__builtin__.object) |
| |
Methods defined here:
- __init__(self, name, flags, namespaces=None)
- __repr__(self)
- 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_assigned(self)
- is_declared_global(self)
- is_free(self)
- is_global(self)
- is_imported(self)
- is_local(self)
- 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_parameter(self)
- is_referenced(self)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|