closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)

This commit is contained in:
Benjamin Peterson 2018-09-12 17:14:39 -07:00 committed by GitHub
parent 6d9767fb26
commit c9a71dd223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 14 deletions

View file

@ -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():