| Home | Trees | Indices | Help |
|
|---|
|
|
A sequence of identifiers, separated by periods, used to name a Python variable, value, or argument. The identifiers that make up a dotted name can be accessed using the indexing operator:
>>> 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. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| DottedName |
|
||
|
|||
UNREACHABLE =
|
|||
_IDENTIFIER_RE = re.compile(r'
|
|||
_ok_identifiers = A cache of identifier strings that have been checked against _IDENTIFIER_RE and found to be acceptable. |
|||
|
|||
Construct a new dotted name from the given sequence of pieces, each of
which can be either a As an optimization,
|
Return the dotted name as a string formed by joining its identifiers with periods: >>> print DottedName('epydoc', 'api_doc', DottedName') epydoc.apidoc.DottedName |
Return the |
Compare this dotted name to |
Return the DottedName formed by removing the last identifier from this
dotted name's identifier sequence. If this dotted name only has one name
in its identifier sequence, return |
Return true if this dotted name is equal to a prefix of
>>> DottedName('a.b').dominates(DottedName('a.b.c.d')) True |
If This is used to generate shorter versions of dotted names in cases where users can infer the intended target from the context.
|
|
|||
_IDENTIFIER_RE
|
_ok_identifiersA cache of identifier strings that have been checked against _IDENTIFIER_RE and found to be acceptable.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jan 30 14:07:16 2008 | http://epydoc.sourceforge.net |