class Text(Node, reprunicode): (source)
astext
method.Method | __init__ |
Undocumented |
Method | __new__ |
Prevent the rawsource argument from propagating to str. |
Method | __repr__ |
Undocumented |
Method | astext |
Return a string representation of this Node. |
Method | copy |
Return a copy of self. |
Method | deepcopy |
Return a deep copy of self (also copying children). |
Method | lstrip |
Undocumented |
Method | pformat |
Return an indented pseudo-XML representation, for test purposes. |
Method | rstrip |
Undocumented |
Method | shortrepr |
Undocumented |
Class Variable | children |
Text nodes have no children, and cannot have children. |
Class Variable | tagname |
Undocumented |
Instance Variable | rawsource |
The raw text from which this element was constructed. |
Method | _dom_node |
Undocumented |
Inherited from Node
:
Method | __bool__ |
Node instances are always true, even if they're empty. A node is more than a simple container. Its boolean "truth" does not depend on having one or more subnodes in the doctree. |
Method | __str__ |
Undocumented |
Method | asdom |
Return a DOM fragment representation of this Node. |
Method | document.setter |
Undocumented |
Method | next_node |
Return the first node in the iterable returned by traverse(), or None if the iterable is empty. |
Method | setup_child |
Undocumented |
Method | traverse |
Return an iterable containing |
Method | walk |
No summary |
Method | walkabout |
Perform a tree traversal similarly to Node.walk() (which see), except also call the dispatch_departure() method before exiting each node. |
Class Variable | line |
The line number (1-based) of the beginning of this Node in source . |
Class Variable | parent |
Back-reference to the Node immediately containing this Node. |
Class Variable | source |
Path or description of the input source which generated this Node. |
Property | document |
Return the document node at the root of the tree containing this Node. |
Method | _all_traverse |
Return iterator that doesn't check for a condition. |
Method | _fast_traverse |
Return iterator that only supports instance checks. |
Method | _traverse |
Return iterator over nodes following self . See traverse() . |
Instance Variable | _document |
Undocumented |
docutils.nodes.Node.pformat
Return an indented pseudo-XML representation, for test purposes.
Override in subclasses.