summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-05-02 06:38:01 (GMT)
committerGitHub <noreply@github.com>2020-05-02 06:38:01 (GMT)
commit531d1e541284bfd7944f8c66a5e8c3c3234afaff (patch)
tree877a425117074ca43bc46db97a145a53f34dcebb /Modules/clinic
parentd2baff4301387e232495491f7291903cc1217d21 (diff)
downloadcpython-531d1e541284bfd7944f8c66a5e8c3c3234afaff.zip
cpython-531d1e541284bfd7944f8c66a5e8c3c3234afaff.tar.gz
cpython-531d1e541284bfd7944f8c66a5e8c3c3234afaff.tar.bz2
bpo-39435: Make the first argument of pickle.loads() positional-only. (GH-19846)
It was positional-only de facto: documentation and two implementations used three different name.
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/_pickle.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/clinic/_pickle.c.h b/Modules/clinic/_pickle.c.h
index 0457a43..136524b 100644
--- a/Modules/clinic/_pickle.c.h
+++ b/Modules/clinic/_pickle.c.h
@@ -735,7 +735,7 @@ exit:
}
PyDoc_STRVAR(_pickle_loads__doc__,
-"loads($module, /, data, *, fix_imports=True, encoding=\'ASCII\',\n"
+"loads($module, data, /, *, fix_imports=True, encoding=\'ASCII\',\n"
" errors=\'strict\', buffers=())\n"
"--\n"
"\n"
@@ -766,7 +766,7 @@ static PyObject *
_pickle_loads(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
{
PyObject *return_value = NULL;
- static const char * const _keywords[] = {"data", "fix_imports", "encoding", "errors", "buffers", NULL};
+ static const char * const _keywords[] = {"", "fix_imports", "encoding", "errors", "buffers", NULL};
static _PyArg_Parser _parser = {NULL, _keywords, "loads", 0};
PyObject *argsbuf[5];
Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1;
@@ -836,4 +836,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
-/*[clinic end generated code: output=e2506823be1960c5 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=324aad69644beda2 input=a9049054013a1b77]*/