[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call
Rémi Lapeyre
report at bugs.python.org
Mon May 27 10:15:47 EDT 2019
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
With the attached PR, the error message is now:
>>> def f(): pass
...
>>> code = f.__code__
>>> code.replace(co_lnotab=4)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: replace() argument 'co_lnotab' must be bytes, not int
----------
nosy: +remi.lapeyre
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37034>
_______________________________________
More information about the Python-bugs-list
mailing list