mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
Python/clinic/marshal.c.h
generated
4
Python/clinic/marshal.c.h
generated
|
|
@ -152,7 +152,7 @@ marshal_loads(PyObject *module, PyObject *arg)
|
|||
goto exit;
|
||||
}
|
||||
if (!PyBuffer_IsContiguous(&bytes, 'C')) {
|
||||
_PyArg_BadArgument("loads", 0, "contiguous buffer", arg);
|
||||
_PyArg_BadArgument("loads", "argument", "contiguous buffer", arg);
|
||||
goto exit;
|
||||
}
|
||||
return_value = marshal_loads_impl(module, &bytes);
|
||||
|
|
@ -165,4 +165,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=ae2bca1aa239e095 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=a859dabe8b0afeb6 input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue