picop.cyframe#
Fast frame-object accessors (CPython 3.10+).
- picop.cyframe.frame_back(frame)#
Return the previous frame, or None when there is none.
- picop.cyframe.frame_builtins(frame)#
Return the builtins namespace for
frame.
- picop.cyframe.frame_check(frame)#
Return whether
frameis a frame object.
- picop.cyframe.frame_code(frame)#
Return the code object executed by
frame.
- picop.cyframe.frame_generator(frame)#
Return the generator or coroutine owning
frame, if any.
- picop.cyframe.frame_globals(frame)#
Return the global namespace for
frame.
- picop.cyframe.frame_lasti(frame)#
Return the last instruction offset for
frame.
- picop.cyframe.frame_lineno(frame)#
Return the current source line for
frame.
- picop.cyframe.frame_locals(frame)#
Return the live local namespace for
frame.Notes
Function frames expose a
FrameLocalsProxy; module frames expose a dict.
- picop.cyframe.frame_var(frame, name)#
Return the value of
nameinframe.