diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-28 19:30:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-28 19:30:26 (GMT) |
commit | ee85339cc69af6b29a37b85a5695fb9c12f0f0a3 (patch) | |
tree | 01f7a995722d516c61b70e1578d43628ab1f2a9f /Python/ceval.c | |
parent | 44e625860bf4c24a811eb81c7953a71671c89608 (diff) | |
download | cpython-ee85339cc69af6b29a37b85a5695fb9c12f0f0a3.zip cpython-ee85339cc69af6b29a37b85a5695fb9c12f0f0a3.tar.gz cpython-ee85339cc69af6b29a37b85a5695fb9c12f0f0a3.tar.bz2 |
in dict displays, evaluate the key before the value (closes #11205)
Patch partially by Steve Dougherty.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 7d39d9b..eb36975 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2584,8 +2584,8 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) goto error; while (--oparg >= 0) { int err; - PyObject *key = TOP(); - PyObject *value = SECOND(); + PyObject *value = TOP(); + PyObject *key = SECOND(); STACKADJ(-2); err = PyDict_SetItem(map, key, value); Py_DECREF(value); |