mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
add explanatory comment
This commit is contained in:
parent
de1a8b720a
commit
da9327faf7
1 changed files with 2 additions and 0 deletions
|
@ -3769,6 +3769,8 @@ dict_keys_inorder(PyObject *dict, int offset)
|
|||
return NULL;
|
||||
while (PyDict_Next(dict, &pos, &k, &v)) {
|
||||
i = PyInt_AS_LONG(v);
|
||||
/* The keys of the dictionary are tuples. (see compiler_add_o)
|
||||
The object we want is always first, though. */
|
||||
k = PyTuple_GET_ITEM(k, 0);
|
||||
Py_INCREF(k);
|
||||
assert((i - offset) < size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue