mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
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 c8a35417db
)
Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
This commit is contained in:
parent
fa23bd286f
commit
874ff65e0a
8 changed files with 53 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue