diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-22 22:34:03 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-22 22:34:03 (GMT) |
| commit | 874ff65e0a70ff4fd1a67e85cd61d76adfcc219d (patch) | |
| tree | 56f0a7d275a2283001ce6ca87168d000c995438c /Python/ceval.c | |
| parent | fa23bd286fb7719bd7601da0b713457589f5536f (diff) | |
| download | cpython-874ff65e0a70ff4fd1a67e85cd61d76adfcc219d.zip cpython-874ff65e0a70ff4fd1a67e85cd61d76adfcc219d.tar.gz cpython-874ff65e0a70ff4fd1a67e85cd61d76adfcc219d.tar.bz2 | |
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
(cherry picked from commit c8a35417db8853a253517a3e5190e174075c6384)
Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
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 7063647..eddcc8d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2944,8 +2944,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); |
