Author xtreak
Recipients benjamin.peterson, emilyemorehouse, gvanrossum, serhiy.storchaka, xtreak
Date 2018-09-12.06:13:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536732813.0.0.956365154283.issue34641@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-09-12 06:13:33xtreaksetrecipients: + xtreak, gvanrossum, benjamin.peterson, serhiy.storchaka, emilyemorehouse
2018-09-12 06:13:33xtreaksetmessageid: <1536732813.0.0.956365154283.issue34641@psf.upfronthosting.co.za>
2018-09-12 06:13:32xtreaklinkissue34641 messages
2018-09-12 06:13:32xtreakcreate