MCPcopy Index your code
hub / github.com/reactive-python/reactpy / _iter_frames

Function _iter_frames

src/py/reactpy/reactpy/_warnings.py:29–36  ·  view source on GitHub ↗
(index: int = 1)

Source from the content-addressed store, hash-verified

27
28
29def _iter_frames(index: int = 1) -> Iterator[FrameType]:
30 frame = currentframe()
31 while frame is not None:
32 if index == 0:
33 yield frame
34 else:
35 index -= 1
36 frame = frame.f_back

Callers 1

_frame_depth_in_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected