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

Method iter_globals

Tools/gdb/libpython.py:999–1006  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

997 return self._frame.iter_locals()
998
999 def iter_globals(self):
1000 '''
1001 Yield a sequence of (name,value) pairs of PyObjectPtr instances, for
1002 the global variables of this frame
1003 '''
1004 if self.is_optimized_out():
1005 return ()
1006 return self._frame.iter_globals()
1007
1008 def iter_builtins(self):
1009 '''

Callers

nothing calls this directly

Calls 2

is_optimized_outMethod · 0.45
iter_globalsMethod · 0.45

Tested by

no test coverage detected