diff options
author | Jörn Heissler <joernheissler@users.noreply.github.com> | 2019-06-22 16:40:55 +0200 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-22 07:40:55 -0700 |
commit | c8a35417db8853a253517a3e5190e174075c6384 (patch) | |
tree | 760e1a6590e7244315d4c8ac35acc8a0a6f6b736 /Python/ceval.c | |
parent | bb110cc2ed81447fb48805f31146cf31323a8fc3 (diff) | |
download | cpython-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.c | 4 |
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); |