MCPcopy Index your code
hub / github.com/RustPython/RustPython / currentframe

Function currentframe

Lib/logging/__init__.py:169–174  ·  view source on GitHub ↗

Return the frame object for the caller's stack frame.

()

Source from the content-addressed store, hash-verified

167 currentframe = lambda: sys._getframe(1)
168else: #pragma: no cover
169 def currentframe():
170 """Return the frame object for the caller's stack frame."""
171 try:
172 raise Exception
173 except Exception as exc:
174 return exc.__traceback__.tb_frame.f_back
175
176#
177# _srcfile is used when walking the stack to check when we've got the first

Callers 1

findCallerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected