mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593)
This commit is contained in:
parent
59725f3bad
commit
4901fe274b
62 changed files with 623 additions and 553 deletions
4
Objects/clinic/moduleobject.c.h
generated
4
Objects/clinic/moduleobject.c.h
generated
|
@ -31,7 +31,7 @@ module___init__(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
goto exit;
|
||||
}
|
||||
if (!PyUnicode_Check(fastargs[0])) {
|
||||
_PyArg_BadArgument("module", 1, "str", fastargs[0]);
|
||||
_PyArg_BadArgument("module", "argument 'name'", "str", fastargs[0]);
|
||||
goto exit;
|
||||
}
|
||||
if (PyUnicode_READY(fastargs[0]) == -1) {
|
||||
|
@ -48,4 +48,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=d7b7ca1237597b08 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=680276bc3a496d7a input=a9049054013a1b77]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue