Mercurial > cpython-lru_cache-weakref
diff Python/traceback.c @ 45661:ff3e9aeaa692 legacy-trunk
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.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Wed, 05 Mar 2008 01:50:33 +0000 |
| parents | a3bf0e24b91e |
| children | 840064802952 |
