Lines Matching defs:attributes
61 inheritance. fields and attributes from the parent class are
65 for attr in 'fields', 'attributes':
77 """Holds evaluation time information. Custom attributes can be attached
116 All nodes have fields and attributes. Fields may be other nodes, lists,
118 positional arguments, attributes as keyword arguments. Each node has
119 two attributes: `lineno` (the line number of the node) and `environment`.
124 attributes = ('lineno', 'environment')
127 def __init__(self, *fields, **attributes):
142 for attr in self.attributes:
143 setattr(self, attr, attributes.pop(attr, None))
144 if attributes:
146 next(iter(attributes)))
213 if 'lineno' in node.attributes: