diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-13 00:14:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 00:14:39 (GMT) |
commit | c9a71dd223c4ad200a97aa320aef6bd3d45f8897 (patch) | |
tree | e287118e87da5e55f7b6adc2ac3727f871aa520a /Lib | |
parent | 6d9767fb263d286dc383ece01ca5b0b25117bd94 (diff) | |
download | cpython-c9a71dd223c4ad200a97aa320aef6bd3d45f8897.zip cpython-c9a71dd223c4ad200a97aa320aef6bd3d45f8897.tar.gz cpython-c9a71dd223c4ad200a97aa320aef6bd3d45f8897.tar.bz2 |
closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_syntax.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index fa1e7aa..c5b2496 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -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(): |