New submission from STINNER Victor <[email protected]>:
Example of generated code:
if (!PyBytes_Check(args[15])) {
_PyArg_BadArgument("replace", 16, "bytes", args[15]);
goto exit;
}
Error message:
TypeError: replace() argument 16 must be bytes, not tuple
It is the 'lnotab' parameter which is a keywoard-only parameter. I expect the
parameter name in the error message.
Note: I got this error while implementing bpo-37032.
----------
components: Interpreter Core
messages: 343365
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Argument Clinic omits name of keyword-only parameter on
_PyArg_BadArgument() call
versions: Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37034>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com