Home | Trees | Index | Help |
|
---|
Package epydoc :: Module uid :: Class Link |
|
UID
, identifying the
object whose documentation is pointed to. The name specifies how the link
should appear in the source document. Usually, the name is just the
(short) name of the target. However, it doesn't have to be. For example,
consider the following code:
>>> def f(x): pass
>>> g = f
Links to g and f will have the same target (whose short name will be
'f'
), but links to them will use different names
('f'
and 'g'
, respectively).
Method Summary | |
---|---|
Create a new cross-reference link, with the given name and target. | |
__cmp__(self,
other)
| |
string
|
Return a string representation of this Link . |
boolean
|
Return true if this link points to a private object. |
boolean
|
Return true if this link points to a public object. |
string
|
Return this link's name. |
UID
|
Return this link's target. |
Instance Variable Summary | |
---|---|
string |
_name : The name by which should be used to indicate this link in source
documents. |
UID |
_target : The UID of the Python object pointed to by this Link. |
Method Details |
---|
__init__(self,
name,
target)
Create a new cross-reference link, with the given name and
target.
|
__repr__(self)
|
is_private(self)
|
is_public(self)
|
name(self)
|
target(self)
|
Instance Variable Details |
---|
_nameThe name by which should be used to indicate this link in source documents.
|
_targetThe UID of the Python object pointed to by this Link.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 20 17:46:12 2004 | http://epydoc.sf.net |