[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")
Serhiy Storchaka
report at bugs.python.org
Thu Jun 8 08:37:59 EDT 2017
Serhiy Storchaka added the comment:
Good catch! This issue is similar to issue30534, but caused by generated code.
The solution is easy: make Argument Clinic (Tools/clinic/clinic.py) generating _PyArg_NoStackKeywords() before _PyArg_ParseStack() and regenerate all generated by Argument Clinic code (make clinic).
----------
components: +Argument Clinic
keywords: +easy
nosy: +larry, serhiy.storchaka
stage: -> needs patch
versions: +Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30600>
_______________________________________
More information about the Python-bugs-list
mailing list