Pep 572 update by gvanrossum · Pull Request #654 · python/peps

Rosuav

tim-one

ilevkivskyi

- 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

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

@gvanrossum

tim-one

@gvanrossum

tim-one

@gvanrossum