class StackFrame(object):
Representation of a part (frame) of a stack.
Must not be directly constructed but retrieved through the `Stack.frames` property.
| Method | __init__ |
Undocumented |
| Property | type |
Property: The type of the stack frame. |
| Property | 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. |
| Property | creation_transition |
Property: The transition that lead to the creation of the frame. |
| Method | __str__ |
Information =========== |
| Method | __repr__ |
Undocumented |
| Method | format_as_html |
This method gets an html formatting string representation for this class instance. |
| Instance Variable | _first_context |
Undocumented |
| Instance Variable | _type |
Undocumented |
| Instance Variable | _creation_transition |
Undocumented |
| Method | _repr_html_ |
Representation used by Jupyter Notebook when an instance of this class is displayed in a cell. |
Property: The type of the stack frame.
It indicates in which context the frame was created.
| Returns | A StackFrameType. | |
Property: The first context refers to the context where the frame is first seen in the trace on top of the active stack.
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.
| Returns | A reven2.trace.Context. | |
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.
The context after the creation_transition is always the first_context of this frame.
| Returns | A reven2.trace.Transition if known. Otherwise None | |