bpo-39868: Update Language Reference for PEP 572.#18793
bpo-39868: Update Language Reference for PEP 572.#18793gvanrossum merged 8 commits intopython:masterfrom
Conversation
|
I think this should be good, but perhaps you can double-check my grammar here @gvanrossum? You likely have a better understanding of PEP 572's corner-cases than I do. |
gvanrossum
left a comment
There was a problem hiding this comment.
Looks good. I'll merge this now. For the TODO part we'll wait for Shankar Jha (see bpo-39868). Please give him some guidance.
| : ("elif" `assignment_expression` ":" `suite`)* | ||
| : ["else" ":" `suite`] | ||
|
|
||
| It selects exactly one of the suites by evaluating the expressions one by one |
There was a problem hiding this comment.
Do you think "expression" here needs updating too? It becomes a bit ugly that way, and in context it doesn't seem ambiguous.
There was a problem hiding this comment.
(I thought more about it and I don't think it needs updating, so I'll land now.)
|
Thanks @brandtbucher for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
@gvanrossum: Please replace |
(cherry picked from commit 8bae219) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
|
GH-18797 is a backport of this pull request to the 3.8 branch. |
|
Thanks, sounds good. |
Leaving the prose part blank for @shankarj67 to fill in a follow-up PR.
https://bugs.python.org/issue39868