]> granicus.if.org Git - python/commit
bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Jun 2019 22:34:03 +0000 (15:34 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Jun 2019 22:34:03 +0000 (15:34 -0700)
commit874ff65e0a70ff4fd1a67e85cd61d76adfcc219d
tree56f0a7d275a2283001ce6ca87168d000c995438c
parentfa23bd286fb7719bd7601da0b713457589f5536f
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>
Doc/library/dis.rst
Doc/reference/expressions.rst
Lib/test/test_dictcomps.py
Lib/test/test_named_expressions.py
Lib/test/test_parser.py
Misc/NEWS.d/next/Core and Builtins/2019-06-17-06-03-55.bpo-35224.FHWPGv.rst [new file with mode: 0644]
Python/ceval.c
Python/compile.c