|
def | __init__ (self, *fields, **attributes) |
|
def | iter_fields (self, exclude=None, only=None) |
|
def | iter_child_nodes (self, exclude=None, only=None) |
|
def | find (self, node_type) |
|
def | find_all (self, node_type) |
|
def | set_ctx (self, ctx) |
|
def | set_lineno (self, lineno, override=False) |
|
def | set_environment (self, environment) |
|
def | __eq__ (self, other) |
|
def | __ne__ (self, other) |
|
def | __repr__ (self) |
|
def | dump (self) |
|
def | __new__ (mcs, name, bases, d) |
|
An overlay scope for extensions. This is a largely unoptimized scope
that however can be used to introduce completely arbitrary variables into
a sub scope from a dictionary or dictionary like object. The `context`
field has to evaluate to a dictionary object.
Example usage::
OverlayScope(context=self.call_method('get_context'),
body=[...])
.. versionadded:: 2.10