]> granicus.if.org Git - python/commit
Issue#2238: some syntax errors from *args or **kwargs expressions
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 5 Mar 2008 01:50:33 +0000 (01:50 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 5 Mar 2008 01:50:33 +0000 (01:50 +0000)
commitd21fb4c2e097dd72d1772a6f0325cc45f9b20f30
tree3a41c2f003bd75ac8855abcab177010dc7577760
parent3710a135067f72322d07df4f5916bcec61ae25d5
Issue#2238: some syntax errors from *args or **kwargs expressions
would give bogus error messages, because of untested exceptions::

    >>> f(**g(1=2))
    XXX undetected error
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: 'int' object is not iterable

instead of the expected SyntaxError: keyword can't be an expression

Will backport.
Lib/test/test_grammar.py
Misc/NEWS
Python/ast.c