| Home | Trees | Index | Help |
|
|---|
|
|
>>> name = DottedName('epydoc', 'api_doc', 'DottedName') >>> print name epydoc.apidoc.DottedName >>> name[1] 'api_doc'
|
|||
| InvalidDottedName | An exception raised by the DottedName constructor when one of its arguments is not a valid dotted name. | ||
|
|||
|
__init__(self,
*pieces)
Construct a new dotted name from the given sequence of pieces, each of which can be either a string or a
DottedName.
|
|||
| __repr__(self) | |||
|
__str__(self)
Return the dotted name as a string formed by joining its identifiers with periods: |
|||
|
__add__(self,
other)
Return a new DottedName whose identifier sequence is
formed by adding other's identifier sequence to
self's.
|
|||
|
__radd__(self,
other)
Return a new DottedName whose identifier sequence is
formed by adding self's identifier sequence to
other's.
|
|||
|
__getitem__(self,
i)
Return the ith identifier in this
DottedName.
|
|||
| __hash__(self) | |||
|
__cmp__(self,
other)
Compare this dotted name to other.
|
|||
|
__len__(self)
Return the number of identifiers in this dotted name. |
|||
|
container(self)
Return the DottedName formed by removing the last identifier from this dotted name's identifier sequence. |
|||
|
dominates(self,
name,
strict=False)
Return true if this dotted name is equal to a prefix of name.
|
|||
| DottedName |
contextualize(self,
context)
If self and context share a common
ancestor, then return a name for self, relative to that
ancestor.
|
||
|
|||
| UNREACHABLE | |||
| _IDENTIFIER_RE | |||
|
|||
string or a DottedName.
Each piece is divided into a sequence of identifiers, and these sequences
are combined together (in order) to form the identifier sequence for the
new DottedName. If a piece contains a string, then it is
divided into substrings by splitting on periods, and each substring is
checked to see if it is a valid identifier.
|
|
>>> print DottedName('epydoc', 'api_doc', DottedName') epydoc.apidoc.DottedName |
DottedName whose identifier sequence is
formed by adding other's identifier sequence to
self's.
|
DottedName whose identifier sequence is
formed by adding self's identifier sequence to
other's.
|
ith identifier in this
DottedName. If i is a non-empty slice, then
return a DottedName built from the identifiers selected by
the slice. If i is an empty slice, return an empty list
(since empty DottedNames are not valid).
|
|
other. Two dotted names are
considered equal if their identifier subsequences are equal. Ordering
between dotted names is lexicographic, in order of identifier from left
to right.
|
|
None instead.
|
name. If strict is true, then also require
that self!=name.
>>> DottedName('a.b').dominates(DottedName('a.b.c.d')) True |
If
|
|
|||
UNREACHABLE
|
_IDENTIFIER_RE
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 3.0alpha2 on Tue Apr 11 17:32:42 2006 | http://epydoc.sf.net |