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)
| 464 | return isinstance(object, types.TracebackType) |
| 465 | |
| 466 | def 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 | |
| 480 | def iscode(object): |
| 481 | """Return true if the object is a code object. |
no outgoing calls
no test coverage detected