Skip to content

Commit a72f025

Browse files
author
benjamin.peterson
committed
add explanatory comment
git-svn-id: http://svn.python.org/projects/python/trunk@69157 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 7fbb5c7 commit a72f025

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/compile.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3769,6 +3769,8 @@ dict_keys_inorder(PyObject *dict, int offset)
37693769
return NULL;
37703770
while (PyDict_Next(dict, &pos, &k, &v)) {
37713771
i = PyInt_AS_LONG(v);
3772+
/* The keys of the dictionary are tuples. (see compiler_add_o)
3773+
The object we want is always first, though. */
37723774
k = PyTuple_GET_ITEM(k, 0);
37733775
Py_INCREF(k);
37743776
assert((i - offset) < size);

0 commit comments

Comments
 (0)