Module symtable :: Class Symbol
[hide private]
[frames] | no frames]

_ClassType Symbol

Instance Methods [hide private]
 
__init__(self, name, flags, namespaces=None)
 
__repr__(self)
 
get_name(self)
 
is_referenced(self)
 
is_parameter(self)
 
is_global(self)
 
is_vararg(self)
 
is_keywordarg(self)
 
is_local(self)
 
is_free(self)
 
is_imported(self)
 
is_assigned(self)
 
is_in_tuple(self)
 
is_namespace(self)
Returns true if name binding introduces new namespace.
 
get_namespaces(self)
Return a list of namespaces bound to this name
 
get_namespace(self)
Returns the single namespace bound to this name.
Method Details [hide private]

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.

get_namespace(self)

 

Returns the single namespace bound to this name.

Raises ValueError if the name is bound to multiple namespaces.