]> granicus.if.org Git - python/commit
improve several corner cases related with argument names in parenthesis
authorBenjamin Peterson <benjamin@python.org>
Thu, 19 Nov 2009 22:54:57 +0000 (22:54 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 19 Nov 2009 22:54:57 +0000 (22:54 +0000)
commit99a5023c80d9a690e4305e2ded1b2a9cf6b30251
tree3fb07d09a0ba874e6607b11b1ad9cc55515c1daa
parentb678de8ba643d940009f26d50d3f6014305f152c
improve several corner cases related with argument names in parenthesis

- Fix #7362: give a good error message for parenthesized arguments with
  defaults.

- Add a py3k warning for any parenthesized arguments since those are not allowed
  in Py3.  This warning is not given in tuple unpacking, since that incurs the
  tuple unpacking warning.
Lib/test/test_py3kwarn.py
Lib/test/test_syntax.py
Python/ast.c