MCPcopy Index your code
hub / github.com/python/cpython / iter_locals

Method iter_locals

Tools/gdb/libpython.py:990–997  ·  view source on GitHub ↗

Yield a sequence of (name,value) pairs of PyObjectPtr instances, for the local variables of this frame

(self)

Source from the content-addressed store, hash-verified

988 self._frame = PyFramePtr(self.field('f_frame'))
989
990 def iter_locals(self):
991 '''
992 Yield a sequence of (name,value) pairs of PyObjectPtr instances, for
993 the local variables of this frame
994 '''
995 if self.is_optimized_out():
996 return
997 return self._frame.iter_locals()
998
999 def iter_globals(self):
1000 '''

Callers

nothing calls this directly

Calls 2

is_optimized_outMethod · 0.45
iter_localsMethod · 0.45

Tested by

no test coverage detected