Message325126
Tested the patch.
➜ cpython git:(master) ✗ ./python.exe
Python 3.8.0a0 (heads/master-dirty:731ff68eee, Sep 12 2018, 11:40:16)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> def foo(a): pass
...
>>> foo((a)=1)
File "<stdin>", line 1
SyntaxError: keyword can't be an expression
➜ cpython git:(master) ✗ ./python.exe -m unittest -v test.test_syntax
test_assign_call (test.test_syntax.SyntaxTestCase) ... ok
test_assign_del (test.test_syntax.SyntaxTestCase) ... ok
test_bad_outdent (test.test_syntax.SyntaxTestCase) ... ok
test_break_outside_loop (test.test_syntax.SyntaxTestCase) ... ok
test_global_param_err_first (test.test_syntax.SyntaxTestCase) ... ok
test_kwargs_last (test.test_syntax.SyntaxTestCase) ... ok
test_kwargs_last2 (test.test_syntax.SyntaxTestCase) ... ok
test_kwargs_last3 (test.test_syntax.SyntaxTestCase) ... ok
test_no_indent (test.test_syntax.SyntaxTestCase) ... ok
test_nonlocal_param_err_first (test.test_syntax.SyntaxTestCase) ... ok
test_unexpected_indent (test.test_syntax.SyntaxTestCase) ... ok
----------------------------------------------------------------------
Ran 11 tests in 0.006s
OK
Thanks |
|
Date |
User |
Action |
Args |
2018-09-12 06:13:33 | xtreak | set | recipients:
+ xtreak, gvanrossum, benjamin.peterson, serhiy.storchaka, emilyemorehouse |
2018-09-12 06:13:33 | xtreak | set | messageid: <1536732813.0.0.956365154283.issue34641@psf.upfronthosting.co.za> |
2018-09-12 06:13:32 | xtreak | link | issue34641 messages |
2018-09-12 06:13:32 | xtreak | create | |
|