Representation of a part (frame) of a stack.

Warnings

Must not be directly constructed but retrieved through the `Stack.frames` property.

Method __init__ Undocumented
Method type Property: The type of the stack frame.
Method first_context Property: The first context refers to the context where the frame is first seen in the trace on top of the active stack.
Method creation_transition Property: The transition that lead to the creation of the frame.
Method __str__ Information ===========
Method __repr__ Undocumented
def __init__(self, stack, _rvn_frame):
Undocumented
@property
def type(self):

Property: The type of the stack frame.

It indicates in which context the frame was created.

Information

ReturnsA StackFrameType.
@property
def first_context(self):

Property: The first context refers to the context where the frame is first seen in the trace on top of the active stack.

Note

While the transition before the first_context will generally be the creation_transition of this frame, sometimes it is not the case because e.g. the frame was created before the beginning of the trace (Unknown frame), or its stack was manipulated (Damaged frame). In that case, the transition before the first_context will typically be a return to this already existing frame.

Information

ReturnsA reven2.trace.Context.
@property
def creation_transition(self):

Property: The transition that lead to the creation of the frame.

Sometimes this transition is unknown because e.g. the frame was created before the beginning of the trace (Unknown frame) or its stack was manipulated (Damaged frame). In these cases, None will be returned.

Note

The context after the creation_transition is always the first_context of this frame.

Information

ReturnsA reven2.trace.Transition if known. Otherwise None
def __str__(self):

Information

RaisesRuntimeErrorif the OSSI resource is not available.
def __repr__(self):
Undocumented
API Documentation for reven2, generated by pydoctor at 2020-09-17 15:57:19.