MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / isframe

Function isframe

tools/python-3.11.9-amd64/Lib/inspect.py:466–478  ·  view source on GitHub ↗

Return true if the object is a frame object. Frame objects provide these attributes: f_back next outer frame object (this frame's caller) f_builtins built-in namespace seen by this frame f_code code object being executed in this frame

(object)

Source from the content-addressed store, hash-verified

464 return isinstance(object, types.TracebackType)
465
466def isframe(object):
467 """Return true if the object is a frame object.
468
469 Frame objects provide these attributes:
470 f_back next outer frame object (this frame's caller)
471 f_builtins built-in namespace seen by this frame
472 f_code code object being executed in this frame
473 f_globals global namespace seen by this frame
474 f_lasti index of last attempted instruction in bytecode
475 f_lineno current line number in Python source code
476 f_locals local namespace seen by this frame
477 f_trace tracing function for this frame, or None"""
478 return isinstance(object, types.FrameType)
479
480def iscode(object):
481 """Return true if the object is a code object.

Callers 4

getfileFunction · 0.85
findsourceFunction · 0.85
getsourcelinesFunction · 0.85
getframeinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected