mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)
This commit is contained in:
parent
6d9767fb26
commit
c9a71dd223
4 changed files with 50 additions and 14 deletions
|
@ -269,6 +269,9 @@ SyntaxError: keyword can't be an expression
|
|||
>>> f(x.y=1)
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: keyword can't be an expression
|
||||
>>> f((x)=2)
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: keyword can't be an expression
|
||||
|
||||
|
||||
More set_context():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue