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

Method get_frame_locals

Lib/test/test_generators.py:781–789  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

779 yield sys._getframe().f_locals
780
781 def get_frame_locals(index):
782 if index == 1:
783 nonlocal frame_locals1
784 next(g1())
785 return frame_locals1
786 if index == 2:
787 return next(g2())
788 else:
789 return None
790
791 for index in (1, 2):
792 with self.subTest(index=index):

Callers

nothing calls this directly

Calls 3

nextFunction · 0.85
g1Function · 0.85
g2Function · 0.85

Tested by

no test coverage detected