A globally unique identifier.
UID is an abstract base class. The base class defines
Method Summary |
|
__init__(self,
name)
|
int
|
__cmp__ (self,
other)
Compare self and other , based on their
globally unique names. |
|
__eq__(self,
other)
|
|
__hash__(self)
|
string
|
__repr__ (self)
Return a string representation of this UID. |
string
|
__str__ (self)
Return the globally unique name for this identifier. |
UID or None
|
cls (self)
Return the UID of the class that contains the object identified by this UID;
or None if the object identified by this UID is not part of
a class. |
boolean
|
descendant_of (self,
ancestor)
Return true if the object identified by this UID is a descendant of
ancestor . |
boolean
|
is_any_function (self)
Return true if this is the UID for a function or a builtin function. |
boolean
|
is_any_method (self)
Return true if this is the UID for a method or a builtin method. |
boolean
|
is_builtin_function (self)
Return true if this is the UID for a builtin function. |
boolean
|
is_builtin_method (self)
Return true if this is the UID for a builtin method. |
boolean
|
is_class (self)
Return true if this is the UID for a class or a type. |
boolean
|
is_function (self)
Return true if this is the UID for a function. |
boolean
|
is_method (self)
Return true if this is the UID for a method. |
boolean
|
is_module (self)
Return true if this is the UID for a module or a package. |
boolean
|
is_package (self)
Return true if this is the UID for a package. |
boolean
|
is_private (self)
Return true if this is a private object, or if any of its ancestors are
private objects. |
boolean
|
is_property (self)
Return true if this is the UID for a property. |
boolean
|
is_public (self)
Return true if this object and all of its ancestor objects are public. |
boolean
|
is_routine (self)
Return true if this is the UID for a function, a method, a builtin function,
or a builtin method. |
boolean
|
is_type (self)
Return true if this is the UID for a type. |
boolean
|
is_variable (self)
Return true if this is the UID for a variable. |
UID
|
module (self)
Return the UID of the module that contains the object identified by this UID;
or None if the object identified by this UID is a module or
a package. |
string
|
name (self)
Return the globally unique name for this identifier. |
UID
|
package (self)
Return the UID of the package that contains the object identified by this
UID; or None if the object identified by this UID is not
part of a package. |
|
parent (self)
Return the UID of the object that contains the object identified by this UID;
or None if the object identified by this UID is not
contained by any other object. |
string
|
shortname (self)
Return the short name for this UID. |
any
|
value (self)
Return the value of the object or variable specified by this UID. |