Pep 572 update by gvanrossum · Pull Request #654 · python/peps
- Remove changes to comprehension scope - Make := in comprehensions assign to containing non-comprehension scope - Clarify binding precedence (tighter than comma, not at same level as =) - Remove mention of more complex targets in the future - Explicitly disallow toplevel := - Rewrite section on differences with =, enumerating all of them - Remove "here's how this could be written without :=" from examples
- Tweak first paragraph of "Syntax and semantics" - Add "Exception cases" (various explicit prohibitions) - Clarify that lambda is a containing scope - Clarify that := and = just don't mix - Added "Open questions" section - Added two new rejected alternatives: "Allowing commas to the right" and "Always requiring parentheses" - Minor edits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters