From: Benjamin Peterson Date: Sat, 31 Jan 2009 23:43:25 +0000 (+0000) Subject: add explanatory comment X-Git-Tag: v2.7a1~2149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da9327faf743dbe4810fe10cddf3597c67d8017b;p=python add explanatory comment --- diff --git a/Python/compile.c b/Python/compile.c index 44ced73c95..917f9d3b12 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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);