bpo-34641: Further restrict the LHS of keyword argument function call syntax. by benjaminp · Pull Request #9212 · python/cpython
Conversation
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code LGTM. Added just two nitpicks.
| return NULL; | ||
| } | ||
| else if (e->kind != Name_kind) { | ||
| } else if (TYPE(expr_node) != NAME) { |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For PEP 7, break a line after "}".
| @@ -0,0 +1,2 @@ | |||
| Further restrict the syntax of the left-hand side of keyword arguments in | |||
| function calls. In particular, ``f((arg)=default)`` is now disallowed. | |||
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default looks a bad name. It is not function definition, but a function call.
benjaminp
deleted the
benjamin-keyword-restriction
branch
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