NodeList#
- class NodeList(elements: Sequence[Any], root: NodeTree, tree: tuple)[source]#
Bases:
Sequence
,Node
List of nodelike objects.
List of preinitialized classes that inherit from the
Node
class would not support wildcards since they would be of type list.This class holds the preinitialized objects. But if a the passed item is not an integer it returns a Node instead.
Warning
Since in case of a passed wildcard symbol the return value is a node, the additional functionality that the nodelike object may provide (e.g. helper functions) are no longer accessible.
- Parameters:
elements (Sequence[Any]) – Preinitialized child elements
root (NodeTree) – Root of the nodetree
tree (tuple) – Node tree (node path as tuple) of the current node
Methods
Attributes