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

Function items_from_keys_and_values

Tools/gdb/libpython.py:750–757  ·  view source on GitHub ↗
(keys, values)

Source from the content-addressed store, hash-verified

748
749
750def items_from_keys_and_values(keys, values):
751 entries, nentries = PyDictObjectPtr._get_entries(keys)
752 for i in safe_range(nentries):
753 ep = entries[i]
754 pyop_value = PyObjectPtr.from_pyobject_ptr(values[i])
755 if not pyop_value.is_null():
756 pyop_key = PyObjectPtr.from_pyobject_ptr(ep['me_key'])
757 yield (pyop_key, pyop_value)
758
759class PyKeysValuesPair:
760

Callers 2

iteritemsMethod · 0.85
iteritemsMethod · 0.85

Calls 4

safe_rangeFunction · 0.85
_get_entriesMethod · 0.80
from_pyobject_ptrMethod · 0.80
is_nullMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…