Kaydet (Commit) da9327fa authored tarafından Benjamin Peterson's avatar Benjamin Peterson

add explanatory comment

üst de1a8b72
...@@ -3769,6 +3769,8 @@ dict_keys_inorder(PyObject *dict, int offset) ...@@ -3769,6 +3769,8 @@ dict_keys_inorder(PyObject *dict, int offset)
return NULL; return NULL;
while (PyDict_Next(dict, &pos, &k, &v)) { while (PyDict_Next(dict, &pos, &k, &v)) {
i = PyInt_AS_LONG(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); k = PyTuple_GET_ITEM(k, 0);
Py_INCREF(k); Py_INCREF(k);
assert((i - offset) < size); assert((i - offset) < size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment