Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/reactive-python/reactpy
/ f_back
Function
f_back
src/py/reactpy/reactpy/core/_f_back.py:17–24 ·
view source on GitHub ↗
(index: int = 0)
Source
from the content-addressed store, hash-verified
15
16
17
def
f_back(index: int = 0) -> FrameType | None:
18
frame = inspect.currentframe()
19
while
frame is not None:
20
if
index < 0:
21
return
frame
22
frame = frame.f_back
23
index -= 1
24
return
None
# nocov
Callers
1
f_module_name
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected