Commit 7445381c authored by Sylvain's avatar Sylvain Committed by Serhiy Storchaka

bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)

The function '_PyArg_ParseStack()' and
'_PyArg_UnpackStack' were failing (with error
"XXX() takes Y argument (Z given)") before
the function '_PyArg_NoStackKeywords()' was called.
Thus, the latter did not raise its more meaningful
error : "XXX() takes no keyword arguments".
parent e5f6e86c
......@@ -148,6 +148,18 @@ class CFunctionCallsErrorMessages(unittest.TestCase):
msg = r"__contains__\(\) takes no keyword arguments"
self.assertRaisesRegex(TypeError, msg, {}.__contains__, x=2, y=2)
def test_varargs3_kw(self):
msg = r"bool\(\) takes no keyword arguments"
self.assertRaisesRegex(TypeError, msg, bool, x=2)
def test_varargs4_kw(self):
msg = r"^index\(\) takes no keyword arguments$"
self.assertRaisesRegex(TypeError, msg, [].index, x=2)
def test_varargs5_kw(self):
msg = r"^hasattr\(\) takes no keyword arguments$"
self.assertRaisesRegex(TypeError, msg, hasattr, x=2)
def test_oldargs0_1(self):
msg = r"keys\(\) takes no arguments \(1 given\)"
self.assertRaisesRegex(TypeError, msg, {}.keys, 0)
......
......@@ -102,12 +102,12 @@ _io__Buffered_peek(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *
PyObject *return_value = NULL;
Py_ssize_t size = 0;
if (!_PyArg_ParseStack(args, nargs, "|n:peek",
&size)) {
if (!_PyArg_NoStackKeywords("peek", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("peek", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:peek",
&size)) {
goto exit;
}
return_value = _io__Buffered_peek_impl(self, size);
......@@ -133,12 +133,12 @@ _io__Buffered_read(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *
PyObject *return_value = NULL;
Py_ssize_t n = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &n)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &n)) {
goto exit;
}
return_value = _io__Buffered_read_impl(self, n);
......@@ -164,12 +164,12 @@ _io__Buffered_read1(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t n = -1;
if (!_PyArg_ParseStack(args, nargs, "|n:read1",
&n)) {
if (!_PyArg_NoStackKeywords("read1", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read1", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:read1",
&n)) {
goto exit;
}
return_value = _io__Buffered_read1_impl(self, n);
......@@ -257,12 +257,12 @@ _io__Buffered_readline(buffered *self, PyObject **args, Py_ssize_t nargs, PyObje
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io__Buffered_readline_impl(self, size);
......@@ -289,12 +289,12 @@ _io__Buffered_seek(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *
PyObject *targetobj;
int whence = 0;
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
&targetobj, &whence)) {
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
&targetobj, &whence)) {
goto exit;
}
return_value = _io__Buffered_seek_impl(self, targetobj, whence);
......@@ -320,13 +320,13 @@ _io__Buffered_truncate(buffered *self, PyObject **args, Py_ssize_t nargs, PyObje
PyObject *return_value = NULL;
PyObject *pos = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "truncate",
0, 1,
&pos)) {
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "truncate",
0, 1,
&pos)) {
goto exit;
}
return_value = _io__Buffered_truncate_impl(self, pos);
......@@ -500,4 +500,4 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
/*[clinic end generated code: output=3cf3262c9b157dc1 input=a9049054013a1b77]*/
/*[clinic end generated code: output=4f7490f82427c63b input=a9049054013a1b77]*/
......@@ -169,12 +169,12 @@ _io_BytesIO_read(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwn
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_BytesIO_read_impl(self, size);
......@@ -204,12 +204,12 @@ _io_BytesIO_read1(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kw
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read1",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("read1", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read1", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read1",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_BytesIO_read1_impl(self, size);
......@@ -240,12 +240,12 @@ _io_BytesIO_readline(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_BytesIO_readline_impl(self, size);
......@@ -276,13 +276,13 @@ _io_BytesIO_readlines(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
PyObject *arg = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "readlines",
0, 1,
&arg)) {
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "readlines",
0, 1,
&arg)) {
goto exit;
}
return_value = _io_BytesIO_readlines_impl(self, arg);
......@@ -347,12 +347,12 @@ _io_BytesIO_truncate(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t size = self->pos;
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_BytesIO_truncate_impl(self, size);
......@@ -386,12 +386,12 @@ _io_BytesIO_seek(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwn
Py_ssize_t pos;
int whence = 0;
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
&pos, &whence)) {
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
&pos, &whence)) {
goto exit;
}
return_value = _io_BytesIO_seek_impl(self, pos, whence);
......@@ -468,4 +468,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
/*[clinic end generated code: output=733795434f838b71 input=a9049054013a1b77]*/
/*[clinic end generated code: output=9e63715414bffb2a input=a9049054013a1b77]*/
......@@ -213,12 +213,12 @@ _io_FileIO_read(fileio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_FileIO_read_impl(self, size);
......@@ -290,12 +290,12 @@ _io_FileIO_seek(fileio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyObject *pos;
int whence = 0;
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
&pos, &whence)) {
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
&pos, &whence)) {
goto exit;
}
return_value = _io_FileIO_seek_impl(self, pos, whence);
......@@ -347,13 +347,13 @@ _io_FileIO_truncate(fileio *self, PyObject **args, Py_ssize_t nargs, PyObject *k
PyObject *return_value = NULL;
PyObject *posobj = NULL;
if (!_PyArg_UnpackStack(args, nargs, "truncate",
0, 1,
&posobj)) {
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "truncate",
0, 1,
&posobj)) {
goto exit;
}
return_value = _io_FileIO_truncate_impl(self, posobj);
......@@ -385,4 +385,4 @@ _io_FileIO_isatty(fileio *self, PyObject *Py_UNUSED(ignored))
#ifndef _IO_FILEIO_TRUNCATE_METHODDEF
#define _IO_FILEIO_TRUNCATE_METHODDEF
#endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */
/*[clinic end generated code: output=a4044e2d878248d0 input=a9049054013a1b77]*/
/*[clinic end generated code: output=2c6a5470100a8f10 input=a9049054013a1b77]*/
......@@ -185,12 +185,12 @@ _io__IOBase_readline(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t limit = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &limit)) {
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &limit)) {
goto exit;
}
return_value = _io__IOBase_readline_impl(self, limit);
......@@ -221,12 +221,12 @@ _io__IOBase_readlines(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *return_value = NULL;
Py_ssize_t hint = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:readlines",
_Py_convert_optional_to_ssize_t, &hint)) {
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:readlines",
_Py_convert_optional_to_ssize_t, &hint)) {
goto exit;
}
return_value = _io__IOBase_readlines_impl(self, hint);
......@@ -260,12 +260,12 @@ _io__RawIOBase_read(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t n = -1;
if (!_PyArg_ParseStack(args, nargs, "|n:read",
&n)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:read",
&n)) {
goto exit;
}
return_value = _io__RawIOBase_read_impl(self, n);
......@@ -291,4 +291,4 @@ _io__RawIOBase_readall(PyObject *self, PyObject *Py_UNUSED(ignored))
{
return _io__RawIOBase_readall_impl(self);
}
/*[clinic end generated code: output=d3f59c135231baae input=a9049054013a1b77]*/
/*[clinic end generated code: output=8361ae8d81d072bf input=a9049054013a1b77]*/
......@@ -59,12 +59,12 @@ _io_StringIO_read(stringio *self, PyObject **args, Py_ssize_t nargs, PyObject *k
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_StringIO_read_impl(self, size);
......@@ -93,12 +93,12 @@ _io_StringIO_readline(stringio *self, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_StringIO_readline_impl(self, size);
......@@ -129,12 +129,12 @@ _io_StringIO_truncate(stringio *self, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *return_value = NULL;
Py_ssize_t size = self->pos;
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io_StringIO_truncate_impl(self, size);
......@@ -168,12 +168,12 @@ _io_StringIO_seek(stringio *self, PyObject **args, Py_ssize_t nargs, PyObject *k
Py_ssize_t pos;
int whence = 0;
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
&pos, &whence)) {
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
&pos, &whence)) {
goto exit;
}
return_value = _io_StringIO_seek_impl(self, pos, whence);
......@@ -302,4 +302,4 @@ _io_StringIO_seekable(stringio *self, PyObject *Py_UNUSED(ignored))
{
return _io_StringIO_seekable_impl(self);
}
/*[clinic end generated code: output=03429d95ed7cd92f input=a9049054013a1b77]*/
/*[clinic end generated code: output=443f5dd99bbbd053 input=a9049054013a1b77]*/
......@@ -271,12 +271,12 @@ _io_TextIOWrapper_read(textio *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t n = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &n)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &n)) {
goto exit;
}
return_value = _io_TextIOWrapper_read_impl(self, n);
......@@ -302,12 +302,12 @@ _io_TextIOWrapper_readline(textio *self, PyObject **args, Py_ssize_t nargs, PyOb
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|n:readline",
&size)) {
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:readline",
&size)) {
goto exit;
}
return_value = _io_TextIOWrapper_readline_impl(self, size);
......@@ -334,12 +334,12 @@ _io_TextIOWrapper_seek(textio *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *cookieObj;
int whence = 0;
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
&cookieObj, &whence)) {
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
&cookieObj, &whence)) {
goto exit;
}
return_value = _io_TextIOWrapper_seek_impl(self, cookieObj, whence);
......@@ -382,13 +382,13 @@ _io_TextIOWrapper_truncate(textio *self, PyObject **args, Py_ssize_t nargs, PyOb
PyObject *return_value = NULL;
PyObject *pos = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "truncate",
0, 1,
&pos)) {
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "truncate",
0, 1,
&pos)) {
goto exit;
}
return_value = _io_TextIOWrapper_truncate_impl(self, pos);
......@@ -515,4 +515,4 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored))
{
return _io_TextIOWrapper_close_impl(self);
}
/*[clinic end generated code: output=7d0dc8eae4b725a1 input=a9049054013a1b77]*/
/*[clinic end generated code: output=8ffc6d2557c9c620 input=a9049054013a1b77]*/
......@@ -220,12 +220,12 @@ _io__WindowsConsoleIO_read(winconsoleio *self, PyObject **args, Py_ssize_t nargs
PyObject *return_value = NULL;
Py_ssize_t size = -1;
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
_Py_convert_optional_to_ssize_t, &size)) {
goto exit;
}
return_value = _io__WindowsConsoleIO_read_impl(self, size);
......@@ -332,4 +332,4 @@ _io__WindowsConsoleIO_isatty(winconsoleio *self, PyObject *Py_UNUSED(ignored))
#ifndef _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
#define _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
#endif /* !defined(_IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF) */
/*[clinic end generated code: output=f2a240ec6af12a20 input=a9049054013a1b77]*/
/*[clinic end generated code: output=3bbf6f893a58f476 input=a9049054013a1b77]*/
......@@ -204,13 +204,13 @@ _multibytecodec_MultibyteStreamReader_read(MultibyteStreamReaderObject *self, Py
PyObject *return_value = NULL;
PyObject *sizeobj = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "read",
0, 1,
&sizeobj)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "read",
0, 1,
&sizeobj)) {
goto exit;
}
return_value = _multibytecodec_MultibyteStreamReader_read_impl(self, sizeobj);
......@@ -237,13 +237,13 @@ _multibytecodec_MultibyteStreamReader_readline(MultibyteStreamReaderObject *self
PyObject *return_value = NULL;
PyObject *sizeobj = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "readline",
0, 1,
&sizeobj)) {
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "readline",
0, 1,
&sizeobj)) {
goto exit;
}
return_value = _multibytecodec_MultibyteStreamReader_readline_impl(self, sizeobj);
......@@ -270,13 +270,13 @@ _multibytecodec_MultibyteStreamReader_readlines(MultibyteStreamReaderObject *sel
PyObject *return_value = NULL;
PyObject *sizehintobj = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "readlines",
0, 1,
&sizehintobj)) {
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "readlines",
0, 1,
&sizehintobj)) {
goto exit;
}
return_value = _multibytecodec_MultibyteStreamReader_readlines_impl(self, sizehintobj);
......@@ -342,4 +342,4 @@ PyDoc_STRVAR(_multibytecodec___create_codec__doc__,
#define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \
{"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__},
/*[clinic end generated code: output=26710ffd4b3c7d7e input=a9049054013a1b77]*/
/*[clinic end generated code: output=12192026a9d55d48 input=a9049054013a1b77]*/
This diff is collapsed.
......@@ -26,12 +26,12 @@ crypt_crypt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
const char *word;
const char *salt;
if (!_PyArg_ParseStack(args, nargs, "ss:crypt",
&word, &salt)) {
if (!_PyArg_NoStackKeywords("crypt", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("crypt", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ss:crypt",
&word, &salt)) {
goto exit;
}
return_value = crypt_crypt_impl(module, word, salt);
......@@ -39,4 +39,4 @@ crypt_crypt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
exit:
return return_value;
}
/*[clinic end generated code: output=3fd5d3625a6f32fe input=a9049054013a1b77]*/
/*[clinic end generated code: output=ebdc6b6a5dec4539 input=a9049054013a1b77]*/
......@@ -59,12 +59,12 @@ _dbm_dbm_get(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
Py_ssize_clean_t key_length;
PyObject *default_value = NULL;
if (!_PyArg_ParseStack(args, nargs, "s#|O:get",
&key, &key_length, &default_value)) {
if (!_PyArg_NoStackKeywords("get", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("get", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "s#|O:get",
&key, &key_length, &default_value)) {
goto exit;
}
return_value = _dbm_dbm_get_impl(self, key, key_length, default_value);
......@@ -97,12 +97,12 @@ _dbm_dbm_setdefault(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject
Py_ssize_clean_t key_length;
PyObject *default_value = NULL;
if (!_PyArg_ParseStack(args, nargs, "s#|O:setdefault",
&key, &key_length, &default_value)) {
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "s#|O:setdefault",
&key, &key_length, &default_value)) {
goto exit;
}
return_value = _dbm_dbm_setdefault_impl(self, key, key_length, default_value);
......@@ -140,12 +140,12 @@ dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
const char *flags = "r";
int mode = 438;
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
&filename, &flags, &mode)) {
if (!_PyArg_NoStackKeywords("open", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("open", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
&filename, &flags, &mode)) {
goto exit;
}
return_value = dbmopen_impl(module, filename, flags, mode);
......@@ -153,4 +153,4 @@ dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
exit:
return return_value;
}
/*[clinic end generated code: output=4fdb7be8bd03cbce input=a9049054013a1b77]*/
/*[clinic end generated code: output=35a8df9a8e4ed18f input=a9049054013a1b77]*/
......@@ -398,12 +398,12 @@ _elementtree_Element_insert(ElementObject *self, PyObject **args, Py_ssize_t nar
Py_ssize_t index;
PyObject *subelement;
if (!_PyArg_ParseStack(args, nargs, "nO!:insert",
&index, &Element_Type, &subelement)) {
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "nO!:insert",
&index, &Element_Type, &subelement)) {
goto exit;
}
return_value = _elementtree_Element_insert_impl(self, index, subelement);
......@@ -465,13 +465,13 @@ _elementtree_Element_makeelement(ElementObject *self, PyObject **args, Py_ssize_
PyObject *tag;
PyObject *attrib;
if (!_PyArg_UnpackStack(args, nargs, "makeelement",
2, 2,
&tag, &attrib)) {
if (!_PyArg_NoStackKeywords("makeelement", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("makeelement", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "makeelement",
2, 2,
&tag, &attrib)) {
goto exit;
}
return_value = _elementtree_Element_makeelement_impl(self, tag, attrib);
......@@ -525,13 +525,13 @@ _elementtree_Element_set(ElementObject *self, PyObject **args, Py_ssize_t nargs,
PyObject *key;
PyObject *value;
if (!_PyArg_UnpackStack(args, nargs, "set",
2, 2,
&key, &value)) {
if (!_PyArg_NoStackKeywords("set", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("set", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "set",
2, 2,
&key, &value)) {
goto exit;
}
return_value = _elementtree_Element_set_impl(self, key, value);
......@@ -614,13 +614,13 @@ _elementtree_TreeBuilder_start(TreeBuilderObject *self, PyObject **args, Py_ssiz
PyObject *tag;
PyObject *attrs = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "start",
1, 2,
&tag, &attrs)) {
if (!_PyArg_NoStackKeywords("start", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("start", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "start",
1, 2,
&tag, &attrs)) {
goto exit;
}
return_value = _elementtree_TreeBuilder_start_impl(self, tag, attrs);
......@@ -706,13 +706,13 @@ _elementtree_XMLParser_doctype(XMLParserObject *self, PyObject **args, Py_ssize_
PyObject *pubid;
PyObject *system;
if (!_PyArg_UnpackStack(args, nargs, "doctype",
3, 3,
&name, &pubid, &system)) {
if (!_PyArg_NoStackKeywords("doctype", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("doctype", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "doctype",
3, 3,
&name, &pubid, &system)) {
goto exit;
}
return_value = _elementtree_XMLParser_doctype_impl(self, name, pubid, system);
......@@ -741,13 +741,13 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject **args, Py_ssi
PyObject *events_queue;
PyObject *events_to_report = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "_setevents",
1, 2,
&events_queue, &events_to_report)) {
if (!_PyArg_NoStackKeywords("_setevents", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("_setevents", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "_setevents",
1, 2,
&events_queue, &events_to_report)) {
goto exit;
}
return_value = _elementtree_XMLParser__setevents_impl(self, events_queue, events_to_report);
......@@ -755,4 +755,4 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject **args, Py_ssi
exit:
return return_value;
}
/*[clinic end generated code: output=fbc92d64735adec0 input=a9049054013a1b77]*/
/*[clinic end generated code: output=6606b1018d2562e1 input=a9049054013a1b77]*/
......@@ -21,13 +21,13 @@ _gdbm_gdbm_get(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwn
PyObject *key;
PyObject *default_value = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "get",
1, 2,
&key, &default_value)) {
if (!_PyArg_NoStackKeywords("get", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("get", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "get",
1, 2,
&key, &default_value)) {
goto exit;
}
return_value = _gdbm_gdbm_get_impl(self, key, default_value);
......@@ -56,13 +56,13 @@ _gdbm_gdbm_setdefault(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObje
PyObject *key;
PyObject *default_value = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
1, 2,
&key, &default_value)) {
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
1, 2,
&key, &default_value)) {
goto exit;
}
return_value = _gdbm_gdbm_setdefault_impl(self, key, default_value);
......@@ -252,12 +252,12 @@ dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
const char *flags = "r";
int mode = 438;
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
&name, &flags, &mode)) {
if (!_PyArg_NoStackKeywords("open", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("open", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
&name, &flags, &mode)) {
goto exit;
}
return_value = dbmopen_impl(module, name, flags, mode);
......@@ -265,4 +265,4 @@ dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
exit:
return return_value;
}
/*[clinic end generated code: output=03a3a63a814ada93 input=a9049054013a1b77]*/
/*[clinic end generated code: output=94c5713a85dab560 input=a9049054013a1b77]*/
......@@ -242,12 +242,12 @@ _lzma__decode_filter_properties(PyObject *module, PyObject **args, Py_ssize_t na
lzma_vli filter_id;
Py_buffer encoded_props = {NULL, NULL};
if (!_PyArg_ParseStack(args, nargs, "O&y*:_decode_filter_properties",
lzma_vli_converter, &filter_id, &encoded_props)) {
if (!_PyArg_NoStackKeywords("_decode_filter_properties", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("_decode_filter_properties", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&y*:_decode_filter_properties",
lzma_vli_converter, &filter_id, &encoded_props)) {
goto exit;
}
return_value = _lzma__decode_filter_properties_impl(module, filter_id, &encoded_props);
......@@ -260,4 +260,4 @@ exit:
return return_value;
}
/*[clinic end generated code: output=5f7a915fb7e41453 input=a9049054013a1b77]*/
/*[clinic end generated code: output=473cf89eb501c28b input=a9049054013a1b77]*/
......@@ -22,12 +22,12 @@ _opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObje
PyObject *oparg = Py_None;
int _return_value;
if (!_PyArg_ParseStack(args, nargs, "i|O:stack_effect",
&opcode, &oparg)) {
if (!_PyArg_NoStackKeywords("stack_effect", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("stack_effect", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "i|O:stack_effect",
&opcode, &oparg)) {
goto exit;
}
_return_value = _opcode_stack_effect_impl(module, opcode, oparg);
......@@ -39,4 +39,4 @@ _opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObje
exit:
return return_value;
}
/*[clinic end generated code: output=62858005ac85baa9 input=a9049054013a1b77]*/
/*[clinic end generated code: output=38f3bf305b3bb601 input=a9049054013a1b77]*/
This diff is collapsed.
......@@ -213,13 +213,13 @@ _pickle_Unpickler_find_class(UnpicklerObject *self, PyObject **args, Py_ssize_t
PyObject *module_name;
PyObject *global_name;
if (!_PyArg_UnpackStack(args, nargs, "find_class",
2, 2,
&module_name, &global_name)) {
if (!_PyArg_NoStackKeywords("find_class", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("find_class", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "find_class",
2, 2,
&module_name, &global_name)) {
goto exit;
}
return_value = _pickle_Unpickler_find_class_impl(self, module_name, global_name);
......@@ -564,4 +564,4 @@ _pickle_loads(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
exit:
return return_value;
}
/*[clinic end generated code: output=b921d325b2f7a096 input=a9049054013a1b77]*/
/*[clinic end generated code: output=639dd0eb8de16c3c input=a9049054013a1b77]*/
......@@ -629,13 +629,13 @@ _sre_SRE_Match_start(MatchObject *self, PyObject **args, Py_ssize_t nargs, PyObj
PyObject *group = NULL;
Py_ssize_t _return_value;
if (!_PyArg_UnpackStack(args, nargs, "start",
0, 1,
&group)) {
if (!_PyArg_NoStackKeywords("start", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("start", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "start",
0, 1,
&group)) {
goto exit;
}
_return_value = _sre_SRE_Match_start_impl(self, group);
......@@ -667,13 +667,13 @@ _sre_SRE_Match_end(MatchObject *self, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *group = NULL;
Py_ssize_t _return_value;
if (!_PyArg_UnpackStack(args, nargs, "end",
0, 1,
&group)) {
if (!_PyArg_NoStackKeywords("end", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("end", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "end",
0, 1,
&group)) {
goto exit;
}
_return_value = _sre_SRE_Match_end_impl(self, group);
......@@ -704,13 +704,13 @@ _sre_SRE_Match_span(MatchObject *self, PyObject **args, Py_ssize_t nargs, PyObje
PyObject *return_value = NULL;
PyObject *group = NULL;
if (!_PyArg_UnpackStack(args, nargs, "span",
0, 1,
&group)) {
if (!_PyArg_NoStackKeywords("span", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("span", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "span",
0, 1,
&group)) {
goto exit;
}
return_value = _sre_SRE_Match_span_impl(self, group);
......@@ -777,4 +777,4 @@ _sre_SRE_Scanner_search(ScannerObject *self, PyObject *Py_UNUSED(ignored))
{
return _sre_SRE_Scanner_search_impl(self);
}
/*[clinic end generated code: output=5fe47c49e475cccb input=a9049054013a1b77]*/
/*[clinic end generated code: output=28b0cc05da4ac219 input=a9049054013a1b77]*/
......@@ -71,12 +71,12 @@ _ssl__SSLSocket_peer_certificate(PySSLSocket *self, PyObject **args, Py_ssize_t
PyObject *return_value = NULL;
int binary_mode = 0;
if (!_PyArg_ParseStack(args, nargs, "|p:peer_certificate",
&binary_mode)) {
if (!_PyArg_NoStackKeywords("peer_certificate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("peer_certificate", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|p:peer_certificate",
&binary_mode)) {
goto exit;
}
return_value = _ssl__SSLSocket_peer_certificate_impl(self, binary_mode);
......@@ -772,12 +772,12 @@ _ssl_MemoryBIO_read(PySSLMemoryBIO *self, PyObject **args, Py_ssize_t nargs, PyO
PyObject *return_value = NULL;
int len = -1;
if (!_PyArg_ParseStack(args, nargs, "|i:read",
&len)) {
if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("read", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|i:read",
&len)) {
goto exit;
}
return_value = _ssl_MemoryBIO_read_impl(self, len);
......@@ -862,12 +862,12 @@ _ssl_RAND_add(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
Py_buffer view = {NULL, NULL};
double entropy;
if (!_PyArg_ParseStack(args, nargs, "s*d:RAND_add",
&view, &entropy)) {
if (!_PyArg_NoStackKeywords("RAND_add", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("RAND_add", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "s*d:RAND_add",
&view, &entropy)) {
goto exit;
}
return_value = _ssl_RAND_add_impl(module, &view, entropy);
......@@ -1180,4 +1180,4 @@ exit:
#ifndef _SSL_ENUM_CRLS_METHODDEF
#define _SSL_ENUM_CRLS_METHODDEF
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
/*[clinic end generated code: output=53cd9100580b45a2 input=a9049054013a1b77]*/
/*[clinic end generated code: output=2ab0e4fdb2d2acbc input=a9049054013a1b77]*/
......@@ -204,12 +204,12 @@ unpack(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
PyStructObject *s_object = NULL;
Py_buffer buffer = {NULL, NULL};
if (!_PyArg_ParseStack(args, nargs, "O&y*:unpack",
cache_struct_converter, &s_object, &buffer)) {
if (!_PyArg_NoStackKeywords("unpack", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("unpack", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&y*:unpack",
cache_struct_converter, &s_object, &buffer)) {
goto exit;
}
return_value = unpack_impl(module, s_object, &buffer);
......@@ -294,12 +294,12 @@ iter_unpack(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyStructObject *s_object = NULL;
PyObject *buffer;
if (!_PyArg_ParseStack(args, nargs, "O&O:iter_unpack",
cache_struct_converter, &s_object, &buffer)) {
if (!_PyArg_NoStackKeywords("iter_unpack", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("iter_unpack", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&O:iter_unpack",
cache_struct_converter, &s_object, &buffer)) {
goto exit;
}
return_value = iter_unpack_impl(module, s_object, buffer);
......@@ -310,4 +310,4 @@ exit:
return return_value;
}
/*[clinic end generated code: output=03e0d193ab1983f9 input=a9049054013a1b77]*/
/*[clinic end generated code: output=351350320f31ca82 input=a9049054013a1b77]*/
......@@ -269,12 +269,12 @@ _tkinter_tkapp_createcommand(TkappObject *self, PyObject **args, Py_ssize_t narg
const char *name;
PyObject *func;
if (!_PyArg_ParseStack(args, nargs, "sO:createcommand",
&name, &func)) {
if (!_PyArg_NoStackKeywords("createcommand", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("createcommand", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "sO:createcommand",
&name, &func)) {
goto exit;
}
return_value = _tkinter_tkapp_createcommand_impl(self, name, func);
......@@ -331,12 +331,12 @@ _tkinter_tkapp_createfilehandler(TkappObject *self, PyObject **args, Py_ssize_t
int mask;
PyObject *func;
if (!_PyArg_ParseStack(args, nargs, "OiO:createfilehandler",
&file, &mask, &func)) {
if (!_PyArg_NoStackKeywords("createfilehandler", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("createfilehandler", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "OiO:createfilehandler",
&file, &mask, &func)) {
goto exit;
}
return_value = _tkinter_tkapp_createfilehandler_impl(self, file, mask, func);
......@@ -395,12 +395,12 @@ _tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject **args, Py_ssize_t
int milliseconds;
PyObject *func;
if (!_PyArg_ParseStack(args, nargs, "iO:createtimerhandler",
&milliseconds, &func)) {
if (!_PyArg_NoStackKeywords("createtimerhandler", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("createtimerhandler", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "iO:createtimerhandler",
&milliseconds, &func)) {
goto exit;
}
return_value = _tkinter_tkapp_createtimerhandler_impl(self, milliseconds, func);
......@@ -426,12 +426,12 @@ _tkinter_tkapp_mainloop(TkappObject *self, PyObject **args, Py_ssize_t nargs, Py
PyObject *return_value = NULL;
int threshold = 0;
if (!_PyArg_ParseStack(args, nargs, "|i:mainloop",
&threshold)) {
if (!_PyArg_NoStackKeywords("mainloop", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("mainloop", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|i:mainloop",
&threshold)) {
goto exit;
}
return_value = _tkinter_tkapp_mainloop_impl(self, threshold);
......@@ -457,12 +457,12 @@ _tkinter_tkapp_dooneevent(TkappObject *self, PyObject **args, Py_ssize_t nargs,
PyObject *return_value = NULL;
int flags = 0;
if (!_PyArg_ParseStack(args, nargs, "|i:dooneevent",
&flags)) {
if (!_PyArg_NoStackKeywords("dooneevent", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("dooneevent", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|i:dooneevent",
&flags)) {
goto exit;
}
return_value = _tkinter_tkapp_dooneevent_impl(self, flags);
......@@ -584,12 +584,12 @@ _tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *k
int sync = 0;
const char *use = NULL;
if (!_PyArg_ParseStack(args, nargs, "|zssiiiiz:create",
&screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) {
if (!_PyArg_NoStackKeywords("create", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("create", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|zssiiiiz:create",
&screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) {
goto exit;
}
return_value = _tkinter_create_impl(module, screenName, baseName, className, interactive, wantobjects, wantTk, sync, use);
......@@ -662,4 +662,4 @@ exit:
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
/*[clinic end generated code: output=328e29a146c4a63b input=a9049054013a1b77]*/
/*[clinic end generated code: output=ed14e0bb0cd9c8e0 input=a9049054013a1b77]*/
......@@ -95,12 +95,12 @@ _tracemalloc_start(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *return_value = NULL;
Py_ssize_t nframe = 1;
if (!_PyArg_ParseStack(args, nargs, "|n:start",
&nframe)) {
if (!_PyArg_NoStackKeywords("start", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("start", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:start",
&nframe)) {
goto exit;
}
return_value = _tracemalloc_start_impl(module, nframe);
......@@ -189,4 +189,4 @@ _tracemalloc_get_traced_memory(PyObject *module, PyObject *Py_UNUSED(ignored))
{
return _tracemalloc_get_traced_memory_impl(module);
}
/*[clinic end generated code: output=159ce5d627964f09 input=a9049054013a1b77]*/
/*[clinic end generated code: output=ca7b197d1bdcdf27 input=a9049054013a1b77]*/
......@@ -50,12 +50,12 @@ _weakref__remove_dead_weakref(PyObject *module, PyObject **args, Py_ssize_t narg
PyObject *dct;
PyObject *key;
if (!_PyArg_ParseStack(args, nargs, "O!O:_remove_dead_weakref",
&PyDict_Type, &dct, &key)) {
if (!_PyArg_NoStackKeywords("_remove_dead_weakref", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("_remove_dead_weakref", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O!O:_remove_dead_weakref",
&PyDict_Type, &dct, &key)) {
goto exit;
}
return_value = _weakref__remove_dead_weakref_impl(module, dct, key);
......@@ -63,4 +63,4 @@ _weakref__remove_dead_weakref(PyObject *module, PyObject **args, Py_ssize_t narg
exit:
return return_value;
}
/*[clinic end generated code: output=b686303486bdfefd input=a9049054013a1b77]*/
/*[clinic end generated code: output=05ecbb46c85839a2 input=a9049054013a1b77]*/
......@@ -150,12 +150,12 @@ _winapi_CreateFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
HANDLE template_file;
HANDLE _return_value;
if (!_PyArg_ParseStack(args, nargs, "skk" F_POINTER "kk" F_HANDLE ":CreateFile",
&file_name, &desired_access, &share_mode, &security_attributes, &creation_disposition, &flags_and_attributes, &template_file)) {
if (!_PyArg_NoStackKeywords("CreateFile", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CreateFile", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "skk" F_POINTER "kk" F_HANDLE ":CreateFile",
&file_name, &desired_access, &share_mode, &security_attributes, &creation_disposition, &flags_and_attributes, &template_file)) {
goto exit;
}
_return_value = _winapi_CreateFile_impl(module, file_name, desired_access, share_mode, security_attributes, creation_disposition, flags_and_attributes, template_file);
......@@ -190,12 +190,12 @@ _winapi_CreateJunction(PyObject *module, PyObject **args, Py_ssize_t nargs, PyOb
LPWSTR src_path;
LPWSTR dst_path;
if (!_PyArg_ParseStack(args, nargs, "uu:CreateJunction",
&src_path, &dst_path)) {
if (!_PyArg_NoStackKeywords("CreateJunction", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CreateJunction", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "uu:CreateJunction",
&src_path, &dst_path)) {
goto exit;
}
return_value = _winapi_CreateJunction_impl(module, src_path, dst_path);
......@@ -235,12 +235,12 @@ _winapi_CreateNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyO
LPSECURITY_ATTRIBUTES security_attributes;
HANDLE _return_value;
if (!_PyArg_ParseStack(args, nargs, "skkkkkk" F_POINTER ":CreateNamedPipe",
&name, &open_mode, &pipe_mode, &max_instances, &out_buffer_size, &in_buffer_size, &default_timeout, &security_attributes)) {
if (!_PyArg_NoStackKeywords("CreateNamedPipe", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CreateNamedPipe", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "skkkkkk" F_POINTER ":CreateNamedPipe",
&name, &open_mode, &pipe_mode, &max_instances, &out_buffer_size, &in_buffer_size, &default_timeout, &security_attributes)) {
goto exit;
}
_return_value = _winapi_CreateNamedPipe_impl(module, name, open_mode, pipe_mode, max_instances, out_buffer_size, in_buffer_size, default_timeout, security_attributes);
......@@ -280,12 +280,12 @@ _winapi_CreatePipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *pipe_attrs;
DWORD size;
if (!_PyArg_ParseStack(args, nargs, "Ok:CreatePipe",
&pipe_attrs, &size)) {
if (!_PyArg_NoStackKeywords("CreatePipe", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CreatePipe", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "Ok:CreatePipe",
&pipe_attrs, &size)) {
goto exit;
}
return_value = _winapi_CreatePipe_impl(module, pipe_attrs, size);
......@@ -335,12 +335,12 @@ _winapi_CreateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObj
Py_UNICODE *current_directory;
PyObject *startup_info;
if (!_PyArg_ParseStack(args, nargs, "ZZOOikOZO:CreateProcess",
&application_name, &command_line, &proc_attrs, &thread_attrs, &inherit_handles, &creation_flags, &env_mapping, &current_directory, &startup_info)) {
if (!_PyArg_NoStackKeywords("CreateProcess", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CreateProcess", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ZZOOikOZO:CreateProcess",
&application_name, &command_line, &proc_attrs, &thread_attrs, &inherit_handles, &creation_flags, &env_mapping, &current_directory, &startup_info)) {
goto exit;
}
return_value = _winapi_CreateProcess_impl(module, application_name, command_line, proc_attrs, thread_attrs, inherit_handles, creation_flags, env_mapping, current_directory, startup_info);
......@@ -383,12 +383,12 @@ _winapi_DuplicateHandle(PyObject *module, PyObject **args, Py_ssize_t nargs, PyO
DWORD options = 0;
HANDLE _return_value;
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "" F_HANDLE "" F_HANDLE "ki|k:DuplicateHandle",
&source_process_handle, &source_handle, &target_process_handle, &desired_access, &inherit_handle, &options)) {
if (!_PyArg_NoStackKeywords("DuplicateHandle", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("DuplicateHandle", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "" F_HANDLE "" F_HANDLE "ki|k:DuplicateHandle",
&source_process_handle, &source_handle, &target_process_handle, &desired_access, &inherit_handle, &options)) {
goto exit;
}
_return_value = _winapi_DuplicateHandle_impl(module, source_process_handle, source_handle, target_process_handle, desired_access, inherit_handle, options);
......@@ -643,12 +643,12 @@ _winapi_OpenProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
DWORD process_id;
HANDLE _return_value;
if (!_PyArg_ParseStack(args, nargs, "kik:OpenProcess",
&desired_access, &inherit_handle, &process_id)) {
if (!_PyArg_NoStackKeywords("OpenProcess", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("OpenProcess", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "kik:OpenProcess",
&desired_access, &inherit_handle, &process_id)) {
goto exit;
}
_return_value = _winapi_OpenProcess_impl(module, desired_access, inherit_handle, process_id);
......@@ -682,12 +682,12 @@ _winapi_PeekNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObj
HANDLE handle;
int size = 0;
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "|i:PeekNamedPipe",
&handle, &size)) {
if (!_PyArg_NoStackKeywords("PeekNamedPipe", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("PeekNamedPipe", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "|i:PeekNamedPipe",
&handle, &size)) {
goto exit;
}
return_value = _winapi_PeekNamedPipe_impl(module, handle, size);
......@@ -752,12 +752,12 @@ _winapi_SetNamedPipeHandleState(PyObject *module, PyObject **args, Py_ssize_t na
PyObject *max_collection_count;
PyObject *collect_data_timeout;
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "OOO:SetNamedPipeHandleState",
&named_pipe, &mode, &max_collection_count, &collect_data_timeout)) {
if (!_PyArg_NoStackKeywords("SetNamedPipeHandleState", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("SetNamedPipeHandleState", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "OOO:SetNamedPipeHandleState",
&named_pipe, &mode, &max_collection_count, &collect_data_timeout)) {
goto exit;
}
return_value = _winapi_SetNamedPipeHandleState_impl(module, named_pipe, mode, max_collection_count, collect_data_timeout);
......@@ -786,12 +786,12 @@ _winapi_TerminateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, Py
HANDLE handle;
UINT exit_code;
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "I:TerminateProcess",
&handle, &exit_code)) {
if (!_PyArg_NoStackKeywords("TerminateProcess", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("TerminateProcess", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "I:TerminateProcess",
&handle, &exit_code)) {
goto exit;
}
return_value = _winapi_TerminateProcess_impl(module, handle, exit_code);
......@@ -818,12 +818,12 @@ _winapi_WaitNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObj
LPCTSTR name;
DWORD timeout;
if (!_PyArg_ParseStack(args, nargs, "sk:WaitNamedPipe",
&name, &timeout)) {
if (!_PyArg_NoStackKeywords("WaitNamedPipe", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("WaitNamedPipe", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "sk:WaitNamedPipe",
&name, &timeout)) {
goto exit;
}
return_value = _winapi_WaitNamedPipe_impl(module, name, timeout);
......@@ -853,12 +853,12 @@ _winapi_WaitForMultipleObjects(PyObject *module, PyObject **args, Py_ssize_t nar
BOOL wait_flag;
DWORD milliseconds = INFINITE;
if (!_PyArg_ParseStack(args, nargs, "Oi|k:WaitForMultipleObjects",
&handle_seq, &wait_flag, &milliseconds)) {
if (!_PyArg_NoStackKeywords("WaitForMultipleObjects", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("WaitForMultipleObjects", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "Oi|k:WaitForMultipleObjects",
&handle_seq, &wait_flag, &milliseconds)) {
goto exit;
}
return_value = _winapi_WaitForMultipleObjects_impl(module, handle_seq, wait_flag, milliseconds);
......@@ -892,12 +892,12 @@ _winapi_WaitForSingleObject(PyObject *module, PyObject **args, Py_ssize_t nargs,
DWORD milliseconds;
long _return_value;
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "k:WaitForSingleObject",
&handle, &milliseconds)) {
if (!_PyArg_NoStackKeywords("WaitForSingleObject", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("WaitForSingleObject", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "k:WaitForSingleObject",
&handle, &milliseconds)) {
goto exit;
}
_return_value = _winapi_WaitForSingleObject_impl(module, handle, milliseconds);
......@@ -941,4 +941,4 @@ _winapi_WriteFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
exit:
return return_value;
}
/*[clinic end generated code: output=2beb984508fb040a input=a9049054013a1b77]*/
/*[clinic end generated code: output=9555c16ed2d95a9f input=a9049054013a1b77]*/
......@@ -76,12 +76,12 @@ array_array_pop(arrayobject *self, PyObject **args, Py_ssize_t nargs, PyObject *
PyObject *return_value = NULL;
Py_ssize_t i = -1;
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
&i)) {
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
&i)) {
goto exit;
}
return_value = array_array_pop_impl(self, i);
......@@ -118,12 +118,12 @@ array_array_insert(arrayobject *self, PyObject **args, Py_ssize_t nargs, PyObjec
Py_ssize_t i;
PyObject *v;
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
&i, &v)) {
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
&i, &v)) {
goto exit;
}
return_value = array_array_insert_impl(self, i, v);
......@@ -220,12 +220,12 @@ array_array_fromfile(arrayobject *self, PyObject **args, Py_ssize_t nargs, PyObj
PyObject *f;
Py_ssize_t n;
if (!_PyArg_ParseStack(args, nargs, "On:fromfile",
&f, &n)) {
if (!_PyArg_NoStackKeywords("fromfile", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("fromfile", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "On:fromfile",
&f, &n)) {
goto exit;
}
return_value = array_array_fromfile_impl(self, f, n);
......@@ -472,12 +472,12 @@ array__array_reconstructor(PyObject *module, PyObject **args, Py_ssize_t nargs,
enum machine_format_code mformat_code;
PyObject *items;
if (!_PyArg_ParseStack(args, nargs, "OCiO:_array_reconstructor",
&arraytype, &typecode, &mformat_code, &items)) {
if (!_PyArg_NoStackKeywords("_array_reconstructor", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("_array_reconstructor", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "OCiO:_array_reconstructor",
&arraytype, &typecode, &mformat_code, &items)) {
goto exit;
}
return_value = array__array_reconstructor_impl(module, arraytype, typecode, mformat_code, items);
......@@ -521,4 +521,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__,
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
/*[clinic end generated code: output=d186a7553c1f1a41 input=a9049054013a1b77]*/
/*[clinic end generated code: output=fb4a67e697d7c0b0 input=a9049054013a1b77]*/
This diff is collapsed.
......@@ -283,12 +283,12 @@ binascii_crc_hqx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *
unsigned int crc;
unsigned int _return_value;
if (!_PyArg_ParseStack(args, nargs, "y*I:crc_hqx",
&data, &crc)) {
if (!_PyArg_NoStackKeywords("crc_hqx", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("crc_hqx", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*I:crc_hqx",
&data, &crc)) {
goto exit;
}
_return_value = binascii_crc_hqx_impl(module, &data, crc);
......@@ -326,12 +326,12 @@ binascii_crc32(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
unsigned int crc = 0;
unsigned int _return_value;
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
&data, &crc)) {
if (!_PyArg_NoStackKeywords("crc32", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("crc32", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
&data, &crc)) {
goto exit;
}
_return_value = binascii_crc32_impl(module, &data, crc);
......@@ -562,4 +562,4 @@ exit:
return return_value;
}
/*[clinic end generated code: output=9db57e86dbe7b2fa input=a9049054013a1b77]*/
/*[clinic end generated code: output=490f08a964e97390 input=a9049054013a1b77]*/
......@@ -653,12 +653,12 @@ cmath_log(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames
Py_complex x;
PyObject *y_obj = NULL;
if (!_PyArg_ParseStack(args, nargs, "D|O:log",
&x, &y_obj)) {
if (!_PyArg_NoStackKeywords("log", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("log", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "D|O:log",
&x, &y_obj)) {
goto exit;
}
return_value = cmath_log_impl(module, x, y_obj);
......@@ -742,12 +742,12 @@ cmath_rect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwname
double r;
double phi;
if (!_PyArg_ParseStack(args, nargs, "dd:rect",
&r, &phi)) {
if (!_PyArg_NoStackKeywords("rect", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("rect", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "dd:rect",
&r, &phi)) {
goto exit;
}
return_value = cmath_rect_impl(module, r, phi);
......@@ -890,4 +890,4 @@ cmath_isclose(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
exit:
return return_value;
}
/*[clinic end generated code: output=93eff5d4c242ee57 input=a9049054013a1b77]*/
/*[clinic end generated code: output=11a0b5bb8a652de6 input=a9049054013a1b77]*/
......@@ -32,12 +32,12 @@ fcntl_fcntl(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
int code;
PyObject *arg = NULL;
if (!_PyArg_ParseStack(args, nargs, "O&i|O:fcntl",
conv_descriptor, &fd, &code, &arg)) {
if (!_PyArg_NoStackKeywords("fcntl", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("fcntl", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&i|O:fcntl",
conv_descriptor, &fd, &code, &arg)) {
goto exit;
}
return_value = fcntl_fcntl_impl(module, fd, code, arg);
......@@ -95,12 +95,12 @@ fcntl_ioctl(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyObject *ob_arg = NULL;
int mutate_arg = 1;
if (!_PyArg_ParseStack(args, nargs, "O&I|Op:ioctl",
conv_descriptor, &fd, &code, &ob_arg, &mutate_arg)) {
if (!_PyArg_NoStackKeywords("ioctl", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("ioctl", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&I|Op:ioctl",
conv_descriptor, &fd, &code, &ob_arg, &mutate_arg)) {
goto exit;
}
return_value = fcntl_ioctl_impl(module, fd, code, ob_arg, mutate_arg);
......@@ -131,12 +131,12 @@ fcntl_flock(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
int fd;
int code;
if (!_PyArg_ParseStack(args, nargs, "O&i:flock",
conv_descriptor, &fd, &code)) {
if (!_PyArg_NoStackKeywords("flock", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("flock", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&i:flock",
conv_descriptor, &fd, &code)) {
goto exit;
}
return_value = fcntl_flock_impl(module, fd, code);
......@@ -189,12 +189,12 @@ fcntl_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyObject *startobj = NULL;
int whence = 0;
if (!_PyArg_ParseStack(args, nargs, "O&i|OOi:lockf",
conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) {
if (!_PyArg_NoStackKeywords("lockf", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("lockf", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&i|OOi:lockf",
conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) {
goto exit;
}
return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence);
......@@ -202,4 +202,4 @@ fcntl_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
exit:
return return_value;
}
/*[clinic end generated code: output=b67e9579722e6d4f input=a9049054013a1b77]*/
/*[clinic end generated code: output=f189ac833d1448af input=a9049054013a1b77]*/
......@@ -21,13 +21,13 @@ math_gcd(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
PyObject *a;
PyObject *b;
if (!_PyArg_UnpackStack(args, nargs, "gcd",
2, 2,
&a, &b)) {
if (!_PyArg_NoStackKeywords("gcd", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("gcd", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "gcd",
2, 2,
&a, &b)) {
goto exit;
}
return_value = math_gcd_impl(module, a, b);
......@@ -142,12 +142,12 @@ math_ldexp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwname
double x;
PyObject *i;
if (!_PyArg_ParseStack(args, nargs, "dO:ldexp",
&x, &i)) {
if (!_PyArg_NoStackKeywords("ldexp", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("ldexp", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "dO:ldexp",
&x, &i)) {
goto exit;
}
return_value = math_ldexp_impl(module, x, i);
......@@ -267,12 +267,12 @@ math_fmod(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames
double x;
double y;
if (!_PyArg_ParseStack(args, nargs, "dd:fmod",
&x, &y)) {
if (!_PyArg_NoStackKeywords("fmod", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("fmod", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "dd:fmod",
&x, &y)) {
goto exit;
}
return_value = math_fmod_impl(module, x, y);
......@@ -300,12 +300,12 @@ math_hypot(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwname
double x;
double y;
if (!_PyArg_ParseStack(args, nargs, "dd:hypot",
&x, &y)) {
if (!_PyArg_NoStackKeywords("hypot", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("hypot", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "dd:hypot",
&x, &y)) {
goto exit;
}
return_value = math_hypot_impl(module, x, y);
......@@ -333,12 +333,12 @@ math_pow(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
double x;
double y;
if (!_PyArg_ParseStack(args, nargs, "dd:pow",
&x, &y)) {
if (!_PyArg_NoStackKeywords("pow", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("pow", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "dd:pow",
&x, &y)) {
goto exit;
}
return_value = math_pow_impl(module, x, y);
......@@ -536,4 +536,4 @@ math_isclose(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwna
exit:
return return_value;
}
/*[clinic end generated code: output=71806f73a5c4bf0b input=a9049054013a1b77]*/
/*[clinic end generated code: output=c9f1ac6ded547cc8 input=a9049054013a1b77]*/
This diff is collapsed.
......@@ -24,12 +24,12 @@ pyexpat_xmlparser_Parse(xmlparseobject *self, PyObject **args, Py_ssize_t nargs,
PyObject *data;
int isfinal = 0;
if (!_PyArg_ParseStack(args, nargs, "O|i:Parse",
&data, &isfinal)) {
if (!_PyArg_NoStackKeywords("Parse", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("Parse", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|i:Parse",
&data, &isfinal)) {
goto exit;
}
return_value = pyexpat_xmlparser_Parse_impl(self, data, isfinal);
......@@ -134,12 +134,12 @@ pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyObject **ar
const char *context;
const char *encoding = NULL;
if (!_PyArg_ParseStack(args, nargs, "z|s:ExternalEntityParserCreate",
&context, &encoding)) {
if (!_PyArg_NoStackKeywords("ExternalEntityParserCreate", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("ExternalEntityParserCreate", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "z|s:ExternalEntityParserCreate",
&context, &encoding)) {
goto exit;
}
return_value = pyexpat_xmlparser_ExternalEntityParserCreate_impl(self, context, encoding);
......@@ -204,12 +204,12 @@ pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyObject **args, Py_ssize_
PyObject *return_value = NULL;
int flag = 1;
if (!_PyArg_ParseStack(args, nargs, "|p:UseForeignDTD",
&flag)) {
if (!_PyArg_NoStackKeywords("UseForeignDTD", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("UseForeignDTD", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|p:UseForeignDTD",
&flag)) {
goto exit;
}
return_value = pyexpat_xmlparser_UseForeignDTD_impl(self, flag);
......@@ -301,4 +301,4 @@ exit:
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
/*[clinic end generated code: output=0548a6b12157e29b input=a9049054013a1b77]*/
/*[clinic end generated code: output=a51f9d31aff1a757 input=a9049054013a1b77]*/
......@@ -72,12 +72,12 @@ resource_setrlimit(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
int resource;
PyObject *limits;
if (!_PyArg_ParseStack(args, nargs, "iO:setrlimit",
&resource, &limits)) {
if (!_PyArg_NoStackKeywords("setrlimit", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("setrlimit", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "iO:setrlimit",
&resource, &limits)) {
goto exit;
}
return_value = resource_setrlimit_impl(module, resource, limits);
......@@ -161,4 +161,4 @@ exit:
#ifndef RESOURCE_PRLIMIT_METHODDEF
#define RESOURCE_PRLIMIT_METHODDEF
#endif /* !defined(RESOURCE_PRLIMIT_METHODDEF) */
/*[clinic end generated code: output=3af613da48e0f8c9 input=a9049054013a1b77]*/
/*[clinic end generated code: output=158aace6e532949e input=a9049054013a1b77]*/
......@@ -86,12 +86,12 @@ signal_signal(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
int signalnum;
PyObject *handler;
if (!_PyArg_ParseStack(args, nargs, "iO:signal",
&signalnum, &handler)) {
if (!_PyArg_NoStackKeywords("signal", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("signal", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "iO:signal",
&signalnum, &handler)) {
goto exit;
}
return_value = signal_signal_impl(module, signalnum, handler);
......@@ -157,12 +157,12 @@ signal_siginterrupt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
int signalnum;
int flag;
if (!_PyArg_ParseStack(args, nargs, "ii:siginterrupt",
&signalnum, &flag)) {
if (!_PyArg_NoStackKeywords("siginterrupt", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("siginterrupt", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ii:siginterrupt",
&signalnum, &flag)) {
goto exit;
}
return_value = signal_siginterrupt_impl(module, signalnum, flag);
......@@ -201,12 +201,12 @@ signal_setitimer(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *
double seconds;
double interval = 0.0;
if (!_PyArg_ParseStack(args, nargs, "id|d:setitimer",
&which, &seconds, &interval)) {
if (!_PyArg_NoStackKeywords("setitimer", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("setitimer", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "id|d:setitimer",
&which, &seconds, &interval)) {
goto exit;
}
return_value = signal_setitimer_impl(module, which, seconds, interval);
......@@ -269,12 +269,12 @@ signal_pthread_sigmask(PyObject *module, PyObject **args, Py_ssize_t nargs, PyOb
int how;
PyObject *mask;
if (!_PyArg_ParseStack(args, nargs, "iO:pthread_sigmask",
&how, &mask)) {
if (!_PyArg_NoStackKeywords("pthread_sigmask", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("pthread_sigmask", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "iO:pthread_sigmask",
&how, &mask)) {
goto exit;
}
return_value = signal_pthread_sigmask_impl(module, how, mask);
......@@ -366,13 +366,13 @@ signal_sigtimedwait(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *sigset;
PyObject *timeout_obj;
if (!_PyArg_UnpackStack(args, nargs, "sigtimedwait",
2, 2,
&sigset, &timeout_obj)) {
if (!_PyArg_NoStackKeywords("sigtimedwait", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("sigtimedwait", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "sigtimedwait",
2, 2,
&sigset, &timeout_obj)) {
goto exit;
}
return_value = signal_sigtimedwait_impl(module, sigset, timeout_obj);
......@@ -405,12 +405,12 @@ signal_pthread_kill(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
unsigned long thread_id;
int signalnum;
if (!_PyArg_ParseStack(args, nargs, "ki:pthread_kill",
&thread_id, &signalnum)) {
if (!_PyArg_NoStackKeywords("pthread_kill", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("pthread_kill", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ki:pthread_kill",
&thread_id, &signalnum)) {
goto exit;
}
return_value = signal_pthread_kill_impl(module, thread_id, signalnum);
......@@ -464,4 +464,4 @@ exit:
#ifndef SIGNAL_PTHREAD_KILL_METHODDEF
#define SIGNAL_PTHREAD_KILL_METHODDEF
#endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */
/*[clinic end generated code: output=c1a3f374b2c77e5d input=a9049054013a1b77]*/
/*[clinic end generated code: output=1a795d863c3bb302 input=a9049054013a1b77]*/
......@@ -23,12 +23,12 @@ _symtable_symtable(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *filename;
const char *startstr;
if (!_PyArg_ParseStack(args, nargs, "sO&s:symtable",
&str, PyUnicode_FSDecoder, &filename, &startstr)) {
if (!_PyArg_NoStackKeywords("symtable", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("symtable", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "sO&s:symtable",
&str, PyUnicode_FSDecoder, &filename, &startstr)) {
goto exit;
}
return_value = _symtable_symtable_impl(module, str, filename, startstr);
......@@ -36,4 +36,4 @@ _symtable_symtable(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
exit:
return return_value;
}
/*[clinic end generated code: output=071dee4d836e2cfd input=a9049054013a1b77]*/
/*[clinic end generated code: output=388595f822b1fc79 input=a9049054013a1b77]*/
......@@ -26,12 +26,12 @@ unicodedata_UCD_decimal(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObj
int chr;
PyObject *default_value = NULL;
if (!_PyArg_ParseStack(args, nargs, "C|O:decimal",
&chr, &default_value)) {
if (!_PyArg_NoStackKeywords("decimal", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("decimal", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "C|O:decimal",
&chr, &default_value)) {
goto exit;
}
return_value = unicodedata_UCD_decimal_impl(self, chr, default_value);
......@@ -63,12 +63,12 @@ unicodedata_UCD_digit(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObjec
int chr;
PyObject *default_value = NULL;
if (!_PyArg_ParseStack(args, nargs, "C|O:digit",
&chr, &default_value)) {
if (!_PyArg_NoStackKeywords("digit", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("digit", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "C|O:digit",
&chr, &default_value)) {
goto exit;
}
return_value = unicodedata_UCD_digit_impl(self, chr, default_value);
......@@ -101,12 +101,12 @@ unicodedata_UCD_numeric(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObj
int chr;
PyObject *default_value = NULL;
if (!_PyArg_ParseStack(args, nargs, "C|O:numeric",
&chr, &default_value)) {
if (!_PyArg_NoStackKeywords("numeric", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("numeric", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "C|O:numeric",
&chr, &default_value)) {
goto exit;
}
return_value = unicodedata_UCD_numeric_impl(self, chr, default_value);
......@@ -318,12 +318,12 @@ unicodedata_UCD_normalize(PyObject *self, PyObject **args, Py_ssize_t nargs, PyO
const char *form;
PyObject *input;
if (!_PyArg_ParseStack(args, nargs, "sU:normalize",
&form, &input)) {
if (!_PyArg_NoStackKeywords("normalize", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("normalize", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "sU:normalize",
&form, &input)) {
goto exit;
}
return_value = unicodedata_UCD_normalize_impl(self, form, input);
......@@ -354,12 +354,12 @@ unicodedata_UCD_name(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject
int chr;
PyObject *default_value = NULL;
if (!_PyArg_ParseStack(args, nargs, "C|O:name",
&chr, &default_value)) {
if (!_PyArg_NoStackKeywords("name", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("name", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "C|O:name",
&chr, &default_value)) {
goto exit;
}
return_value = unicodedata_UCD_name_impl(self, chr, default_value);
......@@ -399,4 +399,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg)
exit:
return return_value;
}
/*[clinic end generated code: output=fcb86aaa3fa40876 input=a9049054013a1b77]*/
/*[clinic end generated code: output=f69c0bbd7294870b input=a9049054013a1b77]*/
......@@ -301,12 +301,12 @@ zlib_Compress_flush(compobject *self, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *return_value = NULL;
int mode = Z_FINISH;
if (!_PyArg_ParseStack(args, nargs, "|i:flush",
&mode)) {
if (!_PyArg_NoStackKeywords("flush", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("flush", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|i:flush",
&mode)) {
goto exit;
}
return_value = zlib_Compress_flush_impl(self, mode);
......@@ -380,12 +380,12 @@ zlib_Decompress_flush(compobject *self, PyObject **args, Py_ssize_t nargs, PyObj
PyObject *return_value = NULL;
Py_ssize_t length = DEF_BUF_SIZE;
if (!_PyArg_ParseStack(args, nargs, "|O&:flush",
ssize_t_converter, &length)) {
if (!_PyArg_NoStackKeywords("flush", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("flush", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|O&:flush",
ssize_t_converter, &length)) {
goto exit;
}
return_value = zlib_Decompress_flush_impl(self, length);
......@@ -418,12 +418,12 @@ zlib_adler32(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwna
Py_buffer data = {NULL, NULL};
unsigned int value = 1;
if (!_PyArg_ParseStack(args, nargs, "y*|I:adler32",
&data, &value)) {
if (!_PyArg_NoStackKeywords("adler32", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("adler32", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*|I:adler32",
&data, &value)) {
goto exit;
}
return_value = zlib_adler32_impl(module, &data, value);
......@@ -461,12 +461,12 @@ zlib_crc32(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwname
Py_buffer data = {NULL, NULL};
unsigned int value = 0;
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
&data, &value)) {
if (!_PyArg_NoStackKeywords("crc32", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("crc32", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
&data, &value)) {
goto exit;
}
return_value = zlib_crc32_impl(module, &data, value);
......@@ -483,4 +483,4 @@ exit:
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
#define ZLIB_COMPRESS_COPY_METHODDEF
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
/*[clinic end generated code: output=fa1b5f4a6208c342 input=a9049054013a1b77]*/
/*[clinic end generated code: output=c7abf02e091bcad3 input=a9049054013a1b77]*/
......@@ -100,12 +100,12 @@ bytearray_maketrans(void *null, PyObject **args, Py_ssize_t nargs, PyObject *kwn
Py_buffer frm = {NULL, NULL};
Py_buffer to = {NULL, NULL};
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
&frm, &to)) {
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
&frm, &to)) {
goto exit;
}
return_value = bytearray_maketrans_impl(&frm, &to);
......@@ -151,12 +151,12 @@ bytearray_replace(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, Py
Py_buffer new = {NULL, NULL};
Py_ssize_t count = -1;
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
&old, &new, &count)) {
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
&old, &new, &count)) {
goto exit;
}
return_value = bytearray_replace_impl(self, &old, &new, count);
......@@ -330,12 +330,12 @@ bytearray_insert(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyO
Py_ssize_t index;
int item;
if (!_PyArg_ParseStack(args, nargs, "nO&:insert",
&index, _getbytevalue, &item)) {
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "nO&:insert",
&index, _getbytevalue, &item)) {
goto exit;
}
return_value = bytearray_insert_impl(self, index, item);
......@@ -410,12 +410,12 @@ bytearray_pop(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObje
PyObject *return_value = NULL;
Py_ssize_t index = -1;
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
&index)) {
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
&index)) {
goto exit;
}
return_value = bytearray_pop_impl(self, index);
......@@ -474,13 +474,13 @@ bytearray_strip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyOb
PyObject *return_value = NULL;
PyObject *bytes = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "strip",
0, 1,
&bytes)) {
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "strip",
0, 1,
&bytes)) {
goto exit;
}
return_value = bytearray_strip_impl(self, bytes);
......@@ -509,13 +509,13 @@ bytearray_lstrip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyO
PyObject *return_value = NULL;
PyObject *bytes = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
0, 1,
&bytes)) {
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
0, 1,
&bytes)) {
goto exit;
}
return_value = bytearray_lstrip_impl(self, bytes);
......@@ -544,13 +544,13 @@ bytearray_rstrip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyO
PyObject *return_value = NULL;
PyObject *bytes = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
0, 1,
&bytes)) {
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
0, 1,
&bytes)) {
goto exit;
}
return_value = bytearray_rstrip_impl(self, bytes);
......@@ -712,12 +712,12 @@ bytearray_reduce_ex(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs,
PyObject *return_value = NULL;
int proto = 0;
if (!_PyArg_ParseStack(args, nargs, "|i:__reduce_ex__",
&proto)) {
if (!_PyArg_NoStackKeywords("__reduce_ex__", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("__reduce_ex__", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|i:__reduce_ex__",
&proto)) {
goto exit;
}
return_value = bytearray_reduce_ex_impl(self, proto);
......@@ -743,4 +743,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored))
{
return bytearray_sizeof_impl(self);
}
/*[clinic end generated code: output=f5c364927425fae8 input=a9049054013a1b77]*/
/*[clinic end generated code: output=f0079d8ee82614f7 input=a9049054013a1b77]*/
......@@ -195,13 +195,13 @@ bytes_strip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kw
PyObject *return_value = NULL;
PyObject *bytes = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "strip",
0, 1,
&bytes)) {
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "strip",
0, 1,
&bytes)) {
goto exit;
}
return_value = bytes_strip_impl(self, bytes);
......@@ -230,13 +230,13 @@ bytes_lstrip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *k
PyObject *return_value = NULL;
PyObject *bytes = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
0, 1,
&bytes)) {
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
0, 1,
&bytes)) {
goto exit;
}
return_value = bytes_lstrip_impl(self, bytes);
......@@ -265,13 +265,13 @@ bytes_rstrip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *k
PyObject *return_value = NULL;
PyObject *bytes = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
0, 1,
&bytes)) {
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
0, 1,
&bytes)) {
goto exit;
}
return_value = bytes_rstrip_impl(self, bytes);
......@@ -342,12 +342,12 @@ bytes_maketrans(void *null, PyObject **args, Py_ssize_t nargs, PyObject *kwnames
Py_buffer frm = {NULL, NULL};
Py_buffer to = {NULL, NULL};
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
&frm, &to)) {
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
&frm, &to)) {
goto exit;
}
return_value = bytes_maketrans_impl(&frm, &to);
......@@ -393,12 +393,12 @@ bytes_replace(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *
Py_buffer new = {NULL, NULL};
Py_ssize_t count = -1;
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
&old, &new, &count)) {
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
&old, &new, &count)) {
goto exit;
}
return_value = bytes_replace_impl(self, &old, &new, count);
......@@ -519,4 +519,4 @@ bytes_fromhex(PyTypeObject *type, PyObject *arg)
exit:
return return_value;
}
/*[clinic end generated code: output=2504c1225108d348 input=a9049054013a1b77]*/
/*[clinic end generated code: output=a82999760469bbec input=a9049054013a1b77]*/
......@@ -21,13 +21,13 @@ dict_fromkeys(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyObject *k
PyObject *iterable;
PyObject *value = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "fromkeys",
1, 2,
&iterable, &value)) {
if (!_PyArg_NoStackKeywords("fromkeys", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("fromkeys", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "fromkeys",
1, 2,
&iterable, &value)) {
goto exit;
}
return_value = dict_fromkeys_impl(type, iterable, value);
......@@ -64,13 +64,13 @@ dict_get(PyDictObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwname
PyObject *key;
PyObject *default_value = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "get",
1, 2,
&key, &default_value)) {
if (!_PyArg_NoStackKeywords("get", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("get", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "get",
1, 2,
&key, &default_value)) {
goto exit;
}
return_value = dict_get_impl(self, key, default_value);
......@@ -101,13 +101,13 @@ dict_setdefault(PyDictObject *self, PyObject **args, Py_ssize_t nargs, PyObject
PyObject *key;
PyObject *default_value = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
1, 2,
&key, &default_value)) {
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
1, 2,
&key, &default_value)) {
goto exit;
}
return_value = dict_setdefault_impl(self, key, default_value);
......@@ -115,4 +115,4 @@ dict_setdefault(PyDictObject *self, PyObject **args, Py_ssize_t nargs, PyObject
exit:
return return_value;
}
/*[clinic end generated code: output=4d57df133cf66e53 input=a9049054013a1b77]*/
/*[clinic end generated code: output=49e03ab4360f5be0 input=a9049054013a1b77]*/
......@@ -58,13 +58,13 @@ float___round__(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwn
PyObject *return_value = NULL;
PyObject *o_ndigits = NULL;
if (!_PyArg_UnpackStack(args, nargs, "__round__",
0, 1,
&o_ndigits)) {
if (!_PyArg_NoStackKeywords("__round__", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("__round__", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "__round__",
0, 1,
&o_ndigits)) {
goto exit;
}
return_value = float___round___impl(self, o_ndigits);
......@@ -273,12 +273,12 @@ float___set_format__(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyOb
const char *typestr;
const char *fmt;
if (!_PyArg_ParseStack(args, nargs, "ss:__set_format__",
&typestr, &fmt)) {
if (!_PyArg_NoStackKeywords("__set_format__", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("__set_format__", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ss:__set_format__",
&typestr, &fmt)) {
goto exit;
}
return_value = float___set_format___impl(type, typestr, fmt);
......@@ -313,4 +313,4 @@ float___format__(PyObject *self, PyObject *arg)
exit:
return return_value;
}
/*[clinic end generated code: output=dc6b0b67a7e40c93 input=a9049054013a1b77]*/
/*[clinic end generated code: output=b2271e7413b36162 input=a9049054013a1b77]*/
......@@ -21,12 +21,12 @@ list_insert(PyListObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwn
Py_ssize_t index;
PyObject *object;
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
&index, &object)) {
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
&index, &object)) {
goto exit;
}
return_value = list_insert_impl(self, index, object);
......@@ -109,12 +109,12 @@ list_pop(PyListObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwname
PyObject *return_value = NULL;
Py_ssize_t index = -1;
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
&index)) {
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
&index)) {
goto exit;
}
return_value = list_pop_impl(self, index);
......@@ -195,12 +195,12 @@ list_index(PyListObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwna
Py_ssize_t start = 0;
Py_ssize_t stop = PY_SSIZE_T_MAX;
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
if (!_PyArg_NoStackKeywords("index", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("index", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
goto exit;
}
return_value = list_index_impl(self, value, start, stop);
......@@ -297,4 +297,4 @@ list___reversed__(PyListObject *self, PyObject *Py_UNUSED(ignored))
{
return list___reversed___impl(self);
}
/*[clinic end generated code: output=71deae70ca0e6799 input=a9049054013a1b77]*/
/*[clinic end generated code: output=63cbe6d6320e916f input=a9049054013a1b77]*/
......@@ -25,12 +25,12 @@ tuple_index(PyTupleObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kw
Py_ssize_t start = 0;
Py_ssize_t stop = PY_SSIZE_T_MAX;
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
if (!_PyArg_NoStackKeywords("index", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("index", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
goto exit;
}
return_value = tuple_index_impl(self, value, start, stop);
......@@ -99,4 +99,4 @@ tuple___getnewargs__(PyTupleObject *self, PyObject *Py_UNUSED(ignored))
{
return tuple___getnewargs___impl(self);
}
/*[clinic end generated code: output=145bcfff64e8c809 input=a9049054013a1b77]*/
/*[clinic end generated code: output=70b4de94a0002ec3 input=a9049054013a1b77]*/
......@@ -83,12 +83,12 @@ unicode_center(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwna
Py_ssize_t width;
Py_UCS4 fillchar = ' ';
if (!_PyArg_ParseStack(args, nargs, "n|O&:center",
&width, convert_uc, &fillchar)) {
if (!_PyArg_NoStackKeywords("center", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("center", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "n|O&:center",
&width, convert_uc, &fillchar)) {
goto exit;
}
return_value = unicode_center_impl(self, width, fillchar);
......@@ -435,12 +435,12 @@ unicode_ljust(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
Py_ssize_t width;
Py_UCS4 fillchar = ' ';
if (!_PyArg_ParseStack(args, nargs, "n|O&:ljust",
&width, convert_uc, &fillchar)) {
if (!_PyArg_NoStackKeywords("ljust", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("ljust", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "n|O&:ljust",
&width, convert_uc, &fillchar)) {
goto exit;
}
return_value = unicode_ljust_impl(self, width, fillchar);
......@@ -487,13 +487,13 @@ unicode_strip(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyObject *return_value = NULL;
PyObject *chars = Py_None;
if (!_PyArg_UnpackStack(args, nargs, "strip",
0, 1,
&chars)) {
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "strip",
0, 1,
&chars)) {
goto exit;
}
return_value = unicode_strip_impl(self, chars);
......@@ -522,13 +522,13 @@ unicode_lstrip(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwna
PyObject *return_value = NULL;
PyObject *chars = NULL;
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
0, 1,
&chars)) {
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
0, 1,
&chars)) {
goto exit;
}
return_value = unicode_lstrip_impl(self, chars);
......@@ -557,13 +557,13 @@ unicode_rstrip(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwna
PyObject *return_value = NULL;
PyObject *chars = NULL;
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
0, 1,
&chars)) {
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
0, 1,
&chars)) {
goto exit;
}
return_value = unicode_rstrip_impl(self, chars);
......@@ -600,12 +600,12 @@ unicode_replace(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwn
PyObject *new;
Py_ssize_t count = -1;
if (!_PyArg_ParseStack(args, nargs, "UU|n:replace",
&old, &new, &count)) {
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "UU|n:replace",
&old, &new, &count)) {
goto exit;
}
return_value = unicode_replace_impl(self, old, new, count);
......@@ -635,12 +635,12 @@ unicode_rjust(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
Py_ssize_t width;
Py_UCS4 fillchar = ' ';
if (!_PyArg_ParseStack(args, nargs, "n|O&:rjust",
&width, convert_uc, &fillchar)) {
if (!_PyArg_NoStackKeywords("rjust", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("rjust", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "n|O&:rjust",
&width, convert_uc, &fillchar)) {
goto exit;
}
return_value = unicode_rjust_impl(self, width, fillchar);
......@@ -840,12 +840,12 @@ unicode_maketrans(void *null, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
PyObject *y = NULL;
PyObject *z = NULL;
if (!_PyArg_ParseStack(args, nargs, "O|UU:maketrans",
&x, &y, &z)) {
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O|UU:maketrans",
&x, &y, &z)) {
goto exit;
}
return_value = unicode_maketrans_impl(x, y, z);
......@@ -962,4 +962,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
{
return unicode_sizeof_impl(self);
}
/*[clinic end generated code: output=88b06f61edd282f9 input=a9049054013a1b77]*/
/*[clinic end generated code: output=339a83c0c100dd17 input=a9049054013a1b77]*/
......@@ -50,12 +50,12 @@ msvcrt_locking(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
int mode;
long nbytes;
if (!_PyArg_ParseStack(args, nargs, "iil:locking",
&fd, &mode, &nbytes)) {
if (!_PyArg_NoStackKeywords("locking", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("locking", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "iil:locking",
&fd, &mode, &nbytes)) {
goto exit;
}
return_value = msvcrt_locking_impl(module, fd, mode, nbytes);
......@@ -89,12 +89,12 @@ msvcrt_setmode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
int flags;
long _return_value;
if (!_PyArg_ParseStack(args, nargs, "ii:setmode",
&fd, &flags)) {
if (!_PyArg_NoStackKeywords("setmode", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("setmode", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ii:setmode",
&fd, &flags)) {
goto exit;
}
_return_value = msvcrt_setmode_impl(module, fd, flags);
......@@ -131,12 +131,12 @@ msvcrt_open_osfhandle(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObj
int flags;
long _return_value;
if (!_PyArg_ParseStack(args, nargs, ""_Py_PARSE_INTPTR"i:open_osfhandle",
&handle, &flags)) {
if (!_PyArg_NoStackKeywords("open_osfhandle", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("open_osfhandle", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, ""_Py_PARSE_INTPTR"i:open_osfhandle",
&handle, &flags)) {
goto exit;
}
_return_value = msvcrt_open_osfhandle_impl(module, handle, flags);
......@@ -449,12 +449,12 @@ msvcrt_CrtSetReportFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyO
int file;
long _return_value;
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportFile",
&type, &file)) {
if (!_PyArg_NoStackKeywords("CrtSetReportFile", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CrtSetReportFile", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportFile",
&type, &file)) {
goto exit;
}
_return_value = msvcrt_CrtSetReportFile_impl(module, type, file);
......@@ -493,12 +493,12 @@ msvcrt_CrtSetReportMode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyO
int mode;
long _return_value;
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportMode",
&type, &mode)) {
if (!_PyArg_NoStackKeywords("CrtSetReportMode", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CrtSetReportMode", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportMode",
&type, &mode)) {
goto exit;
}
_return_value = msvcrt_CrtSetReportMode_impl(module, type, mode);
......@@ -589,4 +589,4 @@ exit:
#ifndef MSVCRT_SET_ERROR_MODE_METHODDEF
#define MSVCRT_SET_ERROR_MODE_METHODDEF
#endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
/*[clinic end generated code: output=be516d0e78532ba3 input=a9049054013a1b77]*/
/*[clinic end generated code: output=9e82abfdd357b0da input=a9049054013a1b77]*/
......@@ -148,12 +148,12 @@ winreg_ConnectRegistry(PyObject *module, PyObject **args, Py_ssize_t nargs, PyOb
HKEY key;
HKEY _return_value;
if (!_PyArg_ParseStack(args, nargs, "ZO&:ConnectRegistry",
&computer_name, clinic_HKEY_converter, &key)) {
if (!_PyArg_NoStackKeywords("ConnectRegistry", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("ConnectRegistry", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "ZO&:ConnectRegistry",
&computer_name, clinic_HKEY_converter, &key)) {
goto exit;
}
_return_value = winreg_ConnectRegistry_impl(module, computer_name, key);
......@@ -199,12 +199,12 @@ winreg_CreateKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *
Py_UNICODE *sub_key;
HKEY _return_value;
if (!_PyArg_ParseStack(args, nargs, "O&Z:CreateKey",
clinic_HKEY_converter, &key, &sub_key)) {
if (!_PyArg_NoStackKeywords("CreateKey", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("CreateKey", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&Z:CreateKey",
clinic_HKEY_converter, &key, &sub_key)) {
goto exit;
}
_return_value = winreg_CreateKey_impl(module, key, sub_key);
......@@ -306,12 +306,12 @@ winreg_DeleteKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *
HKEY key;
Py_UNICODE *sub_key;
if (!_PyArg_ParseStack(args, nargs, "O&u:DeleteKey",
clinic_HKEY_converter, &key, &sub_key)) {
if (!_PyArg_NoStackKeywords("DeleteKey", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("DeleteKey", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&u:DeleteKey",
clinic_HKEY_converter, &key, &sub_key)) {
goto exit;
}
return_value = winreg_DeleteKey_impl(module, key, sub_key);
......@@ -397,12 +397,12 @@ winreg_DeleteValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
HKEY key;
Py_UNICODE *value;
if (!_PyArg_ParseStack(args, nargs, "O&Z:DeleteValue",
clinic_HKEY_converter, &key, &value)) {
if (!_PyArg_NoStackKeywords("DeleteValue", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("DeleteValue", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&Z:DeleteValue",
clinic_HKEY_converter, &key, &value)) {
goto exit;
}
return_value = winreg_DeleteValue_impl(module, key, value);
......@@ -439,12 +439,12 @@ winreg_EnumKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
HKEY key;
int index;
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumKey",
clinic_HKEY_converter, &key, &index)) {
if (!_PyArg_NoStackKeywords("EnumKey", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("EnumKey", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumKey",
clinic_HKEY_converter, &key, &index)) {
goto exit;
}
return_value = winreg_EnumKey_impl(module, key, index);
......@@ -490,12 +490,12 @@ winreg_EnumValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *
HKEY key;
int index;
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumValue",
clinic_HKEY_converter, &key, &index)) {
if (!_PyArg_NoStackKeywords("EnumValue", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("EnumValue", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumValue",
clinic_HKEY_converter, &key, &index)) {
goto exit;
}
return_value = winreg_EnumValue_impl(module, key, index);
......@@ -614,12 +614,12 @@ winreg_LoadKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
Py_UNICODE *sub_key;
Py_UNICODE *file_name;
if (!_PyArg_ParseStack(args, nargs, "O&uu:LoadKey",
clinic_HKEY_converter, &key, &sub_key, &file_name)) {
if (!_PyArg_NoStackKeywords("LoadKey", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("LoadKey", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&uu:LoadKey",
clinic_HKEY_converter, &key, &sub_key, &file_name)) {
goto exit;
}
return_value = winreg_LoadKey_impl(module, key, sub_key, file_name);
......@@ -801,12 +801,12 @@ winreg_QueryValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
HKEY key;
Py_UNICODE *sub_key;
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValue",
clinic_HKEY_converter, &key, &sub_key)) {
if (!_PyArg_NoStackKeywords("QueryValue", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("QueryValue", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValue",
clinic_HKEY_converter, &key, &sub_key)) {
goto exit;
}
return_value = winreg_QueryValue_impl(module, key, sub_key);
......@@ -844,12 +844,12 @@ winreg_QueryValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
HKEY key;
Py_UNICODE *name;
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValueEx",
clinic_HKEY_converter, &key, &name)) {
if (!_PyArg_NoStackKeywords("QueryValueEx", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("QueryValueEx", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValueEx",
clinic_HKEY_converter, &key, &name)) {
goto exit;
}
return_value = winreg_QueryValueEx_impl(module, key, name);
......@@ -892,12 +892,12 @@ winreg_SaveKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
HKEY key;
Py_UNICODE *file_name;
if (!_PyArg_ParseStack(args, nargs, "O&u:SaveKey",
clinic_HKEY_converter, &key, &file_name)) {
if (!_PyArg_NoStackKeywords("SaveKey", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("SaveKey", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&u:SaveKey",
clinic_HKEY_converter, &key, &file_name)) {
goto exit;
}
return_value = winreg_SaveKey_impl(module, key, file_name);
......@@ -950,12 +950,12 @@ winreg_SetValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *k
Py_UNICODE *value;
Py_ssize_clean_t value_length;
if (!_PyArg_ParseStack(args, nargs, "O&Zku#:SetValue",
clinic_HKEY_converter, &key, &sub_key, &type, &value, &value_length)) {
if (!_PyArg_NoStackKeywords("SetValue", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("SetValue", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&Zku#:SetValue",
clinic_HKEY_converter, &key, &sub_key, &type, &value, &value_length)) {
goto exit;
}
return_value = winreg_SetValue_impl(module, key, sub_key, type, value, value_length);
......@@ -1024,12 +1024,12 @@ winreg_SetValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
DWORD type;
PyObject *value;
if (!_PyArg_ParseStack(args, nargs, "O&ZOkO:SetValueEx",
clinic_HKEY_converter, &key, &value_name, &reserved, &type, &value)) {
if (!_PyArg_NoStackKeywords("SetValueEx", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("SetValueEx", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O&ZOkO:SetValueEx",
clinic_HKEY_converter, &key, &value_name, &reserved, &type, &value)) {
goto exit;
}
return_value = winreg_SetValueEx_impl(module, key, value_name, reserved, type, value);
......@@ -1139,4 +1139,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
exit:
return return_value;
}
/*[clinic end generated code: output=ddc72b006143d33d input=a9049054013a1b77]*/
/*[clinic end generated code: output=57f166c252c5ba7a input=a9049054013a1b77]*/
This diff is collapsed.
......@@ -88,12 +88,12 @@ _imp__fix_co_filename(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObj
PyCodeObject *code;
PyObject *path;
if (!_PyArg_ParseStack(args, nargs, "O!U:_fix_co_filename",
&PyCode_Type, &code, &path)) {
if (!_PyArg_NoStackKeywords("_fix_co_filename", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("_fix_co_filename", kwnames)) {
if (!_PyArg_ParseStack(args, nargs, "O!U:_fix_co_filename",
&PyCode_Type, &code, &path)) {
goto exit;
}
return_value = _imp__fix_co_filename_impl(module, code, path);
......@@ -285,13 +285,13 @@ _imp_create_dynamic(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
PyObject *spec;
PyObject *file = NULL;
if (!_PyArg_UnpackStack(args, nargs, "create_dynamic",
1, 2,
&spec, &file)) {
if (!_PyArg_NoStackKeywords("create_dynamic", kwnames)) {
goto exit;
}
if (!_PyArg_NoStackKeywords("create_dynamic", kwnames)) {
if (!_PyArg_UnpackStack(args, nargs, "create_dynamic",
1, 2,
&spec, &file)) {
goto exit;
}
return_value = _imp_create_dynamic_impl(module, spec, file);
......@@ -369,4 +369,4 @@ exit:
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
#define _IMP_EXEC_DYNAMIC_METHODDEF
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
/*[clinic end generated code: output=c1d0e65d04114958 input=a9049054013a1b77]*/
/*[clinic end generated code: output=b970357dbbe25ee4 input=a9049054013a1b77]*/
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment