bpo-39702: Update the Language Reference (PEP 614).#18802
bpo-39702: Update the Language Reference (PEP 614).#18802gvanrossum merged 4 commits intopython:masterfrom
Conversation
Doc/reference/compound_stmts.rst
Outdated
| except that the original function is not temporarily bound to the name ``func``. | ||
|
|
||
| .. versionchanged:: 3.9 | ||
| Functions may be decorated with any valid expression. Previously, the |
There was a problem hiding this comment.
Maybe "... with any valid assignment expression". Ditto for the two other sentences you added.
There was a problem hiding this comment.
Sorry to be jumping back and forth between these two PRs.
I've changed the two notes in the Language Reference, since the linked assignment_expression nodes are well-defined in that context.
I'm resistant to changing the What's New wording, since the phrase "assignment expression" has a different meaning here... the walrus is just about the last thing that I want readers of this document to associate with the grammar change.
Using "expression" keeps with the wording in the PEP, which defines the term well.
There was a problem hiding this comment.
Good point. I will merge things tomorrow.
This should be it for PEP 614.
https://bugs.python.org/issue39702