[issue1573] Improper use of the keyword-only syntax makes the parser crash
Alexandre Vassalotti
report at bugs.python.org
Sat Dec 8 19:13:57 CET 2007
New submission from Alexandre Vassalotti:
I found that the parser fails to handle correctly the (incorrect) case
where the single-star (*), used for delimiting keyword-only arguments,
is immediately followed by a **keywords parameter:
>>> def f(*, **kw):
... pass
...
python: Python/ast.c:652: handle_keywordonly_args: Assertion `kwonlyargs
!= ((void *)0)' failed.
[1] 7872 abort (core dumped) ./python
----------
components: Interpreter Core
keywords: py3k
messages: 58299
nosy: alexandre.vassalotti
severity: normal
status: open
title: Improper use of the keyword-only syntax makes the parser crash
type: crash
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1573>
__________________________________
More information about the Python-bugs-list
mailing list