Frame Class

Inheritance diagram of Frame

class Frame(eval_ctx, parent=None)

Holds compile time information for us.

Methods

__init__(eval_ctx[, parent])
copy() Create a copy of the current one.
find_shadowed([extra]) Find all the shadowed names.
inner() Return an inner frame.
inspect(nodes) Walk the node and check for identifiers.
soft() Return a soft frame.

Descriptions

class Frame

Method details

__init__(eval_ctx, parent=None)
copy()

Create a copy of the current one.

find_shadowed(extra=())

Find all the shadowed names. extra is an iterable of variables that may be defined with add_special which may occour scoped.

inner()

Return an inner frame.

inspect(nodes)

Walk the node and check for identifiers. If the scope is hard (eg: enforce on a python level) overrides from outer scopes are tracked differently.

soft()

Return a soft frame. A soft frame may not be modified as standalone thing as it shares the resources with the frame it was created of, but it’s not a rootlevel frame any longer.

Table Of Contents

Previous topic

DependencyFinderVisitor Class

Next topic

FrameIdentifierVisitor Class