|
|
None | __init__ (self, *t.Any fields, **t.Any attributes) |
| |
| t.Iterator[t.Tuple[str, t.Any]] | iter_fields (self, t.Optional[t.Container[str]] exclude=None, t.Optional[t.Container[str]] only=None) |
| |
| t.Iterator["Node"] | iter_child_nodes (self, t.Optional[t.Container[str]] exclude=None, t.Optional[t.Container[str]] only=None) |
| |
| t.Optional[_NodeBound] | find (self, t.Type[_NodeBound] node_type) |
| |
| t.Iterator[_NodeBound] | find_all (self, t.Union[t.Type[_NodeBound], t.Tuple[t.Type[_NodeBound],...]] node_type) |
| |
| "Node" | set_ctx (self, str ctx) |
| |
| "Node" | set_lineno (self, int lineno, bool override=False) |
| |
| "Node" | set_environment (self, "Environment" environment) |
| |
|
bool | __eq__ (self, t.Any other) |
| |
|
str | __repr__ (self) |
| |
|
str | dump (self) |
| |
|
| __new__ (mcs, name, bases, d) |
| |
|
| fields |
| |
The for loop. `target` is the target for the iteration (usually a
:class:`Name` or :class:`Tuple`), `iter` the iterable. `body` is a list
of nodes that are used as loop-body, and `else_` a list of nodes for the
`else` block. If no else node exists it has to be an empty list.
For filtered nodes an expression can be stored as `test`, otherwise `None`.