Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | get_name |
def | is_referenced |
def | is_parameter |
def | is_global |
def | is_vararg |
def | is_keywordarg |
def | is_local |
def | is_free |
def | is_imported |
def | is_assigned |
def | is_in_tuple |
def | is_namespace |
def | get_namespaces |
def | get_namespace |
Definition at line 175 of file symtable.py.
def __init__ | ( | self, | |
name, | |||
flags, | |||
namespaces = None |
|||
) |
Definition at line 176 of file symtable.py.
References Symbol.__flags, Symbol.__name, _Printer.__name, and Symbol.__namespaces.
def __repr__ | ( | self) |
Definition at line 181 of file symtable.py.
References Symbol.__name, and _Printer.__name.
def get_name | ( | self) |
Definition at line 184 of file symtable.py.
References Symbol.__name, and _Printer.__name.
def get_namespace | ( | self) |
Returns the single namespace bound to this name. Raises ValueError if the name is bound to multiple namespaces.
Definition at line 240 of file symtable.py.
References Symbol.__namespaces.
def get_namespaces | ( | self) |
Return a list of namespaces bound to this name
Definition at line 236 of file symtable.py.
References Symbol.__namespaces.
def is_assigned | ( | self) |
Definition at line 217 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_free | ( | self) |
Definition at line 206 of file symtable.py.
References Symbol.__flags.
def is_global | ( | self) |
Definition at line 193 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_imported | ( | self) |
Definition at line 214 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_in_tuple | ( | self) |
Definition at line 220 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_keywordarg | ( | self) |
Definition at line 200 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_local | ( | self) |
Definition at line 203 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def 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.
Definition at line 223 of file symtable.py.
References Symbol.__namespaces, and symtable.bool().
def is_parameter | ( | self) |
Definition at line 190 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_referenced | ( | self) |
Definition at line 187 of file symtable.py.
References Symbol.__flags, and symtable.bool().
def is_vararg | ( | self) |
Definition at line 197 of file symtable.py.
References Symbol.__flags, and symtable.bool().