-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
bpo-35224: Add What's new entry for evaluation order in dict comprehensions #14319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
…nsions (pythonGH-14319) (cherry picked from commit b51b713) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
GH-14361 is a backport of this pull request to the 3.8 branch. |
| * The :opcode:`MAP_ADD` now expects the value as the first element in the | ||
| stack and the key as the second element. This change was made so the key | ||
| is always evaluated before the value in dictionary comprehensions, as | ||
| porposed by :pep:`572`. (Contributed by Jörn Heissler in :issue:`35224`.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
porposed -> proposed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #14371
https://bugs.python.org/issue35224