File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,6 +349,9 @@ Other Language Changes
349349 is ``-1 ``, and a suitable power of that inverse for other negative exponents.
350350 (Contributed by Mark Dickinson in :issue: `36027 `.)
351351
352+ * When dictionary comprehensions are evaluated, the key is now evaluated before
353+ the value, as proposed by :pep: `572 `.
354+
352355
353356New Modules
354357===========
@@ -1502,6 +1505,11 @@ CPython bytecode changes
15021505 when awaiting a next item in an :keyword: `async for ` loop.
15031506 (Contributed by Serhiy Storchaka in :issue: `33041 `.)
15041507
1508+ * The :opcode: `MAP_ADD ` now expects the value as the first element in the
1509+ stack and the key as the second element. This change was made so the key
1510+ is always evaluated before the value in dictionary comprehensions, as
1511+ porposed by :pep: `572 `. (Contributed by Jörn Heissler in :issue: `35224 `.)
1512+
15051513
15061514Demos and Tools
15071515---------------
You can’t perform that action at this time.
0 commit comments