diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-01-31 23:43:25 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-01-31 23:43:25 +0000 |
commit | 6832b5788bd36e6596df54b53c0303725a63b2b0 (patch) | |
tree | 74d76b0506f31c286e44727d3da7a2c4382479ba /Python/compile.c | |
parent | 1ca61d9ed1658fa66da3b98afa0e7f79aa078624 (diff) | |
download | cpython-6832b5788bd36e6596df54b53c0303725a63b2b0.tar.gz |
add explanatory comment
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |