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

Method __iter__

Tools/gdb/libpython.py:1326–1333  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1324 return gdb.lookup_global_symbol('_PySet_Dummy').value()
1325
1326 def __iter__(self):
1327 dummy_ptr = self._dummy_key()
1328 table = self.field('table')
1329 for i in safe_range(self.field('mask') + 1):
1330 setentry = table[i]
1331 key = setentry['key']
1332 if key != 0 and key != dummy_ptr:
1333 yield PyObjectPtr.from_pyobject_ptr(key)
1334
1335 def proxyval(self, visited):
1336 # Guard against infinite loops:

Callers

nothing calls this directly

Calls 4

_dummy_keyMethod · 0.95
safe_rangeFunction · 0.85
fieldMethod · 0.80
from_pyobject_ptrMethod · 0.80

Tested by

no test coverage detected