From 4901fe274bc82b95dc89bcb3de8802a3dfedab32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lapeyre?= Date: Thu, 29 Aug 2019 16:49:08 +0200 Subject: bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593) --- Python/clinic/sysmodule.c.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Python/clinic/sysmodule.c.h') diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h index 2f3bd146e2..f9ab28dd05 100644 --- a/Python/clinic/sysmodule.c.h +++ b/Python/clinic/sysmodule.c.h @@ -228,7 +228,7 @@ sys_intern(PyObject *module, PyObject *arg) PyObject *s; if (!PyUnicode_Check(arg)) { - _PyArg_BadArgument("intern", 0, "str", arg); + _PyArg_BadArgument("intern", "argument", "str", arg); goto exit; } if (PyUnicode_READY(arg) == -1) { @@ -875,7 +875,7 @@ sys_call_tracing(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } func = args[0]; if (!PyTuple_Check(args[1])) { - _PyArg_BadArgument("call_tracing", 2, "tuple", args[1]); + _PyArg_BadArgument("call_tracing", "argument 2", "tuple", args[1]); goto exit; } funcargs = args[1]; @@ -995,4 +995,4 @@ sys_getandroidapilevel(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SYS_GETANDROIDAPILEVEL_METHODDEF #define SYS_GETANDROIDAPILEVEL_METHODDEF #endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */ -/*[clinic end generated code: output=b26faa0abdd700da input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8b250245a1265eef input=a9049054013a1b77]*/ -- cgit v1.2.1