summaryrefslogtreecommitdiffstats
path: root/Python/clinic/sysmodule.c.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-08-29 15:29:59 (GMT)
committerGitHub <noreply@github.com>2019-08-29 15:29:59 (GMT)
commit96631dcb11c2786f470d4586bf23ecca14361506 (patch)
treec9e4d813d843a2ec84983bf9bf3f301d6f2036bc /Python/clinic/sysmodule.c.h
parent9db66a2b5ab6a302bc46421712f13b0afd94654b (diff)
downloadcpython-96631dcb11c2786f470d4586bf23ecca14361506.zip
cpython-96631dcb11c2786f470d4586bf23ecca14361506.tar.gz
cpython-96631dcb11c2786f470d4586bf23ecca14361506.tar.bz2
[3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599)
(cherry picked from commit 4901fe274bc82b95dc89bcb3de8802a3dfedab32) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Diffstat (limited to 'Python/clinic/sysmodule.c.h')
-rw-r--r--Python/clinic/sysmodule.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h
index 563332e..93bc332 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) {
@@ -931,7 +931,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];
@@ -1088,4 +1088,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=1a67b37c4486d65f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=092edc868de055a6 input=a9049054013a1b77]*/