summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorJörn Heissler <joernheissler@users.noreply.github.com>2019-06-22 16:40:55 +0200
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-22 07:40:55 -0700
commitc8a35417db8853a253517a3e5190e174075c6384 (patch)
tree760e1a6590e7244315d4c8ac35acc8a0a6f6b736 /Python/ceval.c
parentbb110cc2ed81447fb48805f31146cf31323a8fc3 (diff)
downloadcpython-git-c8a35417db8853a253517a3e5190e174075c6384.tar.gz
bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139)
… as proposed in PEP 572; key is now evaluated before value. https://bugs.python.org/issue35224
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 4ca986a945..5d29d41cf8 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2940,8 +2940,8 @@ main_loop:
}
case TARGET(MAP_ADD): {
- PyObject *key = TOP();
- PyObject *value = SECOND();
+ PyObject *value = TOP();
+ PyObject *key = SECOND();
PyObject *map;
int err;
STACK_SHRINK(2);