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)
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);
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=3cf3262c9b157dc1 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=4f7490f82427c63b input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=733795434f838b71 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9e63715414bffb2a input=a9049054013a1b77]*/
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);
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);
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);
#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]*/
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);
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);
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);
{
return _io__RawIOBase_readall_impl(self);
}
-/*[clinic end generated code: output=d3f59c135231baae input=a9049054013a1b77]*/
+/*[clinic end generated code: output=8361ae8d81d072bf input=a9049054013a1b77]*/
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);
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);
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);
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);
{
return _io_StringIO_seekable_impl(self);
}
-/*[clinic end generated code: output=03429d95ed7cd92f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=443f5dd99bbbd053 input=a9049054013a1b77]*/
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);
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);
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);
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);
{
return _io_TextIOWrapper_close_impl(self);
}
-/*[clinic end generated code: output=7d0dc8eae4b725a1 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=8ffc6d2557c9c620 input=a9049054013a1b77]*/
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);
#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]*/
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);
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);
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);
#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]*/
Py_buffer data = {NULL, NULL};
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "s*|z:escape_decode",
- &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("escape_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("escape_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "s*|z:escape_decode",
+ &data, &errors)) {
goto exit;
}
return_value = _codecs_escape_decode_impl(module, &data, errors);
PyObject *data;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "O!|z:escape_encode",
- &PyBytes_Type, &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("escape_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("escape_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O!|z:escape_encode",
+ &PyBytes_Type, &data, &errors)) {
goto exit;
}
return_value = _codecs_escape_encode_impl(module, data, errors);
PyObject *obj;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_decode",
- &obj, &errors)) {
+ if (!_PyArg_NoStackKeywords("unicode_internal_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("unicode_internal_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_decode",
+ &obj, &errors)) {
goto exit;
}
return_value = _codecs_unicode_internal_decode_impl(module, obj, errors);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_7_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_7_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_7_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_7_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_7_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_8_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_8_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_8_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_8_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_8_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_16_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_16_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_le_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_16_le_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_le_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_le_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_16_le_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_be_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_16_be_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_be_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_be_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_16_be_decode_impl(module, &data, errors, final);
int byteorder = 0;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_16_ex_decode",
- &data, &errors, &byteorder, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_16_ex_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_ex_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_16_ex_decode",
+ &data, &errors, &byteorder, &final)) {
goto exit;
}
return_value = _codecs_utf_16_ex_decode_impl(module, &data, errors, byteorder, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_32_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_32_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_le_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_32_le_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_le_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_le_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_32_le_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_be_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_32_be_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_be_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_be_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_utf_32_be_decode_impl(module, &data, errors, final);
int byteorder = 0;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_32_ex_decode",
- &data, &errors, &byteorder, &final)) {
+ if (!_PyArg_NoStackKeywords("utf_32_ex_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_ex_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_32_ex_decode",
+ &data, &errors, &byteorder, &final)) {
goto exit;
}
return_value = _codecs_utf_32_ex_decode_impl(module, &data, errors, byteorder, final);
Py_buffer data = {NULL, NULL};
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "s*|z:unicode_escape_decode",
- &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("unicode_escape_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("unicode_escape_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "s*|z:unicode_escape_decode",
+ &data, &errors)) {
goto exit;
}
return_value = _codecs_unicode_escape_decode_impl(module, &data, errors);
Py_buffer data = {NULL, NULL};
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "s*|z:raw_unicode_escape_decode",
- &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("raw_unicode_escape_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("raw_unicode_escape_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "s*|z:raw_unicode_escape_decode",
+ &data, &errors)) {
goto exit;
}
return_value = _codecs_raw_unicode_escape_decode_impl(module, &data, errors);
Py_buffer data = {NULL, NULL};
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "y*|z:latin_1_decode",
- &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("latin_1_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("latin_1_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|z:latin_1_decode",
+ &data, &errors)) {
goto exit;
}
return_value = _codecs_latin_1_decode_impl(module, &data, errors);
Py_buffer data = {NULL, NULL};
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "y*|z:ascii_decode",
- &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("ascii_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ascii_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|z:ascii_decode",
+ &data, &errors)) {
goto exit;
}
return_value = _codecs_ascii_decode_impl(module, &data, errors);
const char *errors = NULL;
PyObject *mapping = NULL;
- if (!_PyArg_ParseStack(args, nargs, "y*|zO:charmap_decode",
- &data, &errors, &mapping)) {
+ if (!_PyArg_NoStackKeywords("charmap_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("charmap_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zO:charmap_decode",
+ &data, &errors, &mapping)) {
goto exit;
}
return_value = _codecs_charmap_decode_impl(module, &data, errors, mapping);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:mbcs_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("mbcs_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("mbcs_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:mbcs_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_mbcs_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*|zi:oem_decode",
- &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("oem_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("oem_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*|zi:oem_decode",
+ &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_oem_decode_impl(module, &data, errors, final);
const char *errors = NULL;
int final = 0;
- if (!_PyArg_ParseStack(args, nargs, "iy*|zi:code_page_decode",
- &codepage, &data, &errors, &final)) {
+ if (!_PyArg_NoStackKeywords("code_page_decode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("code_page_decode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iy*|zi:code_page_decode",
+ &codepage, &data, &errors, &final)) {
goto exit;
}
return_value = _codecs_code_page_decode_impl(module, codepage, &data, errors, final);
Py_buffer data = {NULL, NULL};
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "s*|z:readbuffer_encode",
- &data, &errors)) {
+ if (!_PyArg_NoStackKeywords("readbuffer_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("readbuffer_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "s*|z:readbuffer_encode",
+ &data, &errors)) {
goto exit;
}
return_value = _codecs_readbuffer_encode_impl(module, &data, errors);
PyObject *obj;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_encode",
- &obj, &errors)) {
+ if (!_PyArg_NoStackKeywords("unicode_internal_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("unicode_internal_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_encode",
+ &obj, &errors)) {
goto exit;
}
return_value = _codecs_unicode_internal_encode_impl(module, obj, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:utf_7_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("utf_7_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_7_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:utf_7_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_utf_7_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:utf_8_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("utf_8_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_8_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:utf_8_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_utf_8_encode_impl(module, str, errors);
const char *errors = NULL;
int byteorder = 0;
- if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_16_encode",
- &str, &errors, &byteorder)) {
+ if (!_PyArg_NoStackKeywords("utf_16_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_16_encode",
+ &str, &errors, &byteorder)) {
goto exit;
}
return_value = _codecs_utf_16_encode_impl(module, str, errors, byteorder);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_le_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("utf_16_le_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_le_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_le_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_utf_16_le_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_be_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("utf_16_be_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_16_be_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_be_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_utf_16_be_encode_impl(module, str, errors);
const char *errors = NULL;
int byteorder = 0;
- if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_32_encode",
- &str, &errors, &byteorder)) {
+ if (!_PyArg_NoStackKeywords("utf_32_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_32_encode",
+ &str, &errors, &byteorder)) {
goto exit;
}
return_value = _codecs_utf_32_encode_impl(module, str, errors, byteorder);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_le_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("utf_32_le_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_le_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_le_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_utf_32_le_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_be_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("utf_32_be_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("utf_32_be_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_be_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_utf_32_be_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:unicode_escape_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("unicode_escape_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("unicode_escape_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:unicode_escape_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_unicode_escape_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:raw_unicode_escape_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("raw_unicode_escape_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("raw_unicode_escape_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:raw_unicode_escape_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_raw_unicode_escape_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:latin_1_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("latin_1_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("latin_1_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:latin_1_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_latin_1_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:ascii_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("ascii_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ascii_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:ascii_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_ascii_encode_impl(module, str, errors);
const char *errors = NULL;
PyObject *mapping = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|zO:charmap_encode",
- &str, &errors, &mapping)) {
+ if (!_PyArg_NoStackKeywords("charmap_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("charmap_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|zO:charmap_encode",
+ &str, &errors, &mapping)) {
goto exit;
}
return_value = _codecs_charmap_encode_impl(module, str, errors, mapping);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:mbcs_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("mbcs_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("mbcs_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:mbcs_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_mbcs_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "U|z:oem_encode",
- &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("oem_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("oem_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "U|z:oem_encode",
+ &str, &errors)) {
goto exit;
}
return_value = _codecs_oem_encode_impl(module, str, errors);
PyObject *str;
const char *errors = NULL;
- if (!_PyArg_ParseStack(args, nargs, "iU|z:code_page_encode",
- &code_page, &str, &errors)) {
+ if (!_PyArg_NoStackKeywords("code_page_encode", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("code_page_encode", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iU|z:code_page_encode",
+ &code_page, &str, &errors)) {
goto exit;
}
return_value = _codecs_code_page_encode_impl(module, code_page, str, errors);
const char *errors;
PyObject *handler;
- if (!_PyArg_ParseStack(args, nargs, "sO:register_error",
- &errors, &handler)) {
+ if (!_PyArg_NoStackKeywords("register_error", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("register_error", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "sO:register_error",
+ &errors, &handler)) {
goto exit;
}
return_value = _codecs_register_error_impl(module, errors, handler);
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
-/*[clinic end generated code: output=36fb42f450a3b4dc input=a9049054013a1b77]*/
+/*[clinic end generated code: output=11fdb992ba55fd73 input=a9049054013a1b77]*/
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=3fd5d3625a6f32fe input=a9049054013a1b77]*/
+/*[clinic end generated code: output=ebdc6b6a5dec4539 input=a9049054013a1b77]*/
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=4fdb7be8bd03cbce input=a9049054013a1b77]*/
+/*[clinic end generated code: output=35a8df9a8e4ed18f input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=fbc92d64735adec0 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=6606b1018d2562e1 input=a9049054013a1b77]*/
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=03a3a63a814ada93 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=94c5713a85dab560 input=a9049054013a1b77]*/
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);
return return_value;
}
-/*[clinic end generated code: output=5f7a915fb7e41453 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=473cf89eb501c28b input=a9049054013a1b77]*/
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=62858005ac85baa9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=38f3bf305b3bb601 input=a9049054013a1b77]*/
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "add",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("add", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("add", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "add",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_add_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "sub",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("sub", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("sub", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "sub",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_sub_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "mul",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("mul", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("mul", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "mul",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_mul_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "matmul",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("matmul", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("matmul", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "matmul",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_matmul_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "floordiv",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("floordiv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("floordiv", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "floordiv",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_floordiv_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "truediv",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("truediv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("truediv", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "truediv",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_truediv_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "mod",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("mod", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("mod", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "mod",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_mod_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "lshift",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("lshift", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lshift", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "lshift",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_lshift_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "rshift",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("rshift", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("rshift", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "rshift",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_rshift_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "and_",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("and_", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("and_", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "and_",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_and__impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "xor",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("xor", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("xor", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "xor",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_xor_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "or_",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("or_", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("or_", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "or_",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_or__impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "iadd",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("iadd", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("iadd", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "iadd",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_iadd_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "isub",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("isub", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("isub", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "isub",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_isub_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "imul",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("imul", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("imul", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "imul",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_imul_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "imatmul",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("imatmul", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("imatmul", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "imatmul",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_imatmul_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ifloordiv",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ifloordiv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ifloordiv", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ifloordiv",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ifloordiv_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "itruediv",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("itruediv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("itruediv", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "itruediv",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_itruediv_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "imod",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("imod", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("imod", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "imod",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_imod_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ilshift",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ilshift", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ilshift", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ilshift",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ilshift_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "irshift",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("irshift", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("irshift", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "irshift",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_irshift_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "iand",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("iand", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("iand", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "iand",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_iand_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ixor",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ixor", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ixor", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ixor",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ixor_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ior",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ior", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ior", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ior",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ior_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "concat",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("concat", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("concat", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "concat",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_concat_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "iconcat",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("iconcat", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("iconcat", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "iconcat",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_iconcat_impl(module, a, b);
PyObject *b;
int _return_value;
- if (!_PyArg_UnpackStack(args, nargs, "contains",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("contains", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("contains", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "contains",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
_return_value = _operator_contains_impl(module, a, b);
PyObject *b;
Py_ssize_t _return_value;
- if (!_PyArg_UnpackStack(args, nargs, "indexOf",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("indexOf", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("indexOf", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "indexOf",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
_return_value = _operator_indexOf_impl(module, a, b);
PyObject *b;
Py_ssize_t _return_value;
- if (!_PyArg_UnpackStack(args, nargs, "countOf",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("countOf", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("countOf", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "countOf",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
_return_value = _operator_countOf_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "getitem",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("getitem", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("getitem", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "getitem",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_getitem_impl(module, a, b);
PyObject *b;
PyObject *c;
- if (!_PyArg_UnpackStack(args, nargs, "setitem",
- 3, 3,
- &a, &b, &c)) {
+ if (!_PyArg_NoStackKeywords("setitem", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setitem", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "setitem",
+ 3, 3,
+ &a, &b, &c)) {
goto exit;
}
return_value = _operator_setitem_impl(module, a, b, c);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "delitem",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("delitem", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("delitem", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "delitem",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_delitem_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "eq",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("eq", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("eq", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "eq",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_eq_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ne",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ne", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ne", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ne",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ne_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "lt",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("lt", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lt", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "lt",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_lt_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "le",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("le", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("le", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "le",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_le_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "gt",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("gt", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("gt", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "gt",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_gt_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ge",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ge", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ge", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ge",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ge_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "pow",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("pow", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("pow", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "pow",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_pow_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "ipow",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("ipow", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ipow", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "ipow",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_ipow_impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "is_",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("is_", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("is_", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "is_",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_is__impl(module, a, b);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "is_not",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("is_not", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("is_not", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "is_not",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator_is_not_impl(module, a, b);
Py_ssize_t default_value = 0;
Py_ssize_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "O|n:length_hint",
- &obj, &default_value)) {
+ if (!_PyArg_NoStackKeywords("length_hint", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("length_hint", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O|n:length_hint",
+ &obj, &default_value)) {
goto exit;
}
_return_value = _operator_length_hint_impl(module, obj, default_value);
PyObject *a;
PyObject *b;
- if (!_PyArg_UnpackStack(args, nargs, "_compare_digest",
- 2, 2,
- &a, &b)) {
+ if (!_PyArg_NoStackKeywords("_compare_digest", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("_compare_digest", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "_compare_digest",
+ 2, 2,
+ &a, &b)) {
goto exit;
}
return_value = _operator__compare_digest_impl(module, a, b);
exit:
return return_value;
}
-/*[clinic end generated code: output=c030b6747fddd9c6 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=fa8d3eeea396bbec input=a9049054013a1b77]*/
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=b921d325b2f7a096 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=639dd0eb8de16c3c input=a9049054013a1b77]*/
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);
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);
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);
{
return _sre_SRE_Scanner_search_impl(self);
}
-/*[clinic end generated code: output=5fe47c49e475cccb input=a9049054013a1b77]*/
+/*[clinic end generated code: output=28b0cc05da4ac219 input=a9049054013a1b77]*/
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);
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);
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);
#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]*/
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);
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);
return return_value;
}
-/*[clinic end generated code: output=03e0d193ab1983f9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=351350320f31ca82 input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
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);
#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]*/
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);
{
return _tracemalloc_get_traced_memory_impl(module);
}
-/*[clinic end generated code: output=159ce5d627964f09 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=ca7b197d1bdcdf27 input=a9049054013a1b77]*/
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=b686303486bdfefd input=a9049054013a1b77]*/
+/*[clinic end generated code: output=05ecbb46c85839a2 input=a9049054013a1b77]*/
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);
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);
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);
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);
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, ¤t_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, ¤t_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);
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);
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);
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);
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=2beb984508fb040a input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9555c16ed2d95a9f input=a9049054013a1b77]*/
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);
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);
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);
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);
#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]*/
int width;
Py_ssize_t index;
- if (!_PyArg_ParseStack(args, nargs, "y*in:getsample",
- &fragment, &width, &index)) {
+ if (!_PyArg_NoStackKeywords("getsample", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("getsample", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*in:getsample",
+ &fragment, &width, &index)) {
goto exit;
}
return_value = audioop_getsample_impl(module, &fragment, width, index);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:max",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("max", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("max", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:max",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_max_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:minmax",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("minmax", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("minmax", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:minmax",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_minmax_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:avg",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("avg", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("avg", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:avg",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_avg_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:rms",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("rms", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("rms", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:rms",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_rms_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
Py_buffer reference = {NULL, NULL};
- if (!_PyArg_ParseStack(args, nargs, "y*y*:findfit",
- &fragment, &reference)) {
+ if (!_PyArg_NoStackKeywords("findfit", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("findfit", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*y*:findfit",
+ &fragment, &reference)) {
goto exit;
}
return_value = audioop_findfit_impl(module, &fragment, &reference);
Py_buffer fragment = {NULL, NULL};
Py_buffer reference = {NULL, NULL};
- if (!_PyArg_ParseStack(args, nargs, "y*y*:findfactor",
- &fragment, &reference)) {
+ if (!_PyArg_NoStackKeywords("findfactor", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("findfactor", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*y*:findfactor",
+ &fragment, &reference)) {
goto exit;
}
return_value = audioop_findfactor_impl(module, &fragment, &reference);
Py_buffer fragment = {NULL, NULL};
Py_ssize_t length;
- if (!_PyArg_ParseStack(args, nargs, "y*n:findmax",
- &fragment, &length)) {
+ if (!_PyArg_NoStackKeywords("findmax", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("findmax", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*n:findmax",
+ &fragment, &length)) {
goto exit;
}
return_value = audioop_findmax_impl(module, &fragment, length);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:avgpp",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("avgpp", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("avgpp", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:avgpp",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_avgpp_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:maxpp",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("maxpp", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("maxpp", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:maxpp",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_maxpp_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:cross",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("cross", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("cross", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:cross",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_cross_impl(module, &fragment, width);
int width;
double factor;
- if (!_PyArg_ParseStack(args, nargs, "y*id:mul",
- &fragment, &width, &factor)) {
+ if (!_PyArg_NoStackKeywords("mul", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("mul", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*id:mul",
+ &fragment, &width, &factor)) {
goto exit;
}
return_value = audioop_mul_impl(module, &fragment, width, factor);
double lfactor;
double rfactor;
- if (!_PyArg_ParseStack(args, nargs, "y*idd:tomono",
- &fragment, &width, &lfactor, &rfactor)) {
+ if (!_PyArg_NoStackKeywords("tomono", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("tomono", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*idd:tomono",
+ &fragment, &width, &lfactor, &rfactor)) {
goto exit;
}
return_value = audioop_tomono_impl(module, &fragment, width, lfactor, rfactor);
double lfactor;
double rfactor;
- if (!_PyArg_ParseStack(args, nargs, "y*idd:tostereo",
- &fragment, &width, &lfactor, &rfactor)) {
+ if (!_PyArg_NoStackKeywords("tostereo", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("tostereo", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*idd:tostereo",
+ &fragment, &width, &lfactor, &rfactor)) {
goto exit;
}
return_value = audioop_tostereo_impl(module, &fragment, width, lfactor, rfactor);
Py_buffer fragment2 = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*y*i:add",
- &fragment1, &fragment2, &width)) {
+ if (!_PyArg_NoStackKeywords("add", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("add", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*y*i:add",
+ &fragment1, &fragment2, &width)) {
goto exit;
}
return_value = audioop_add_impl(module, &fragment1, &fragment2, width);
int width;
int bias;
- if (!_PyArg_ParseStack(args, nargs, "y*ii:bias",
- &fragment, &width, &bias)) {
+ if (!_PyArg_NoStackKeywords("bias", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("bias", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*ii:bias",
+ &fragment, &width, &bias)) {
goto exit;
}
return_value = audioop_bias_impl(module, &fragment, width, bias);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:reverse",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("reverse", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("reverse", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:reverse",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_reverse_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:byteswap",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("byteswap", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("byteswap", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:byteswap",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_byteswap_impl(module, &fragment, width);
int width;
int newwidth;
- if (!_PyArg_ParseStack(args, nargs, "y*ii:lin2lin",
- &fragment, &width, &newwidth)) {
+ if (!_PyArg_NoStackKeywords("lin2lin", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lin2lin", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*ii:lin2lin",
+ &fragment, &width, &newwidth)) {
goto exit;
}
return_value = audioop_lin2lin_impl(module, &fragment, width, newwidth);
int weightA = 1;
int weightB = 0;
- if (!_PyArg_ParseStack(args, nargs, "y*iiiiO|ii:ratecv",
- &fragment, &width, &nchannels, &inrate, &outrate, &state, &weightA, &weightB)) {
+ if (!_PyArg_NoStackKeywords("ratecv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ratecv", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*iiiiO|ii:ratecv",
+ &fragment, &width, &nchannels, &inrate, &outrate, &state, &weightA, &weightB)) {
goto exit;
}
return_value = audioop_ratecv_impl(module, &fragment, width, nchannels, inrate, outrate, state, weightA, weightB);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:lin2ulaw",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("lin2ulaw", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lin2ulaw", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:lin2ulaw",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_lin2ulaw_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:ulaw2lin",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("ulaw2lin", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ulaw2lin", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:ulaw2lin",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_ulaw2lin_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:lin2alaw",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("lin2alaw", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lin2alaw", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:lin2alaw",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_lin2alaw_impl(module, &fragment, width);
Py_buffer fragment = {NULL, NULL};
int width;
- if (!_PyArg_ParseStack(args, nargs, "y*i:alaw2lin",
- &fragment, &width)) {
+ if (!_PyArg_NoStackKeywords("alaw2lin", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("alaw2lin", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*i:alaw2lin",
+ &fragment, &width)) {
goto exit;
}
return_value = audioop_alaw2lin_impl(module, &fragment, width);
int width;
PyObject *state;
- if (!_PyArg_ParseStack(args, nargs, "y*iO:lin2adpcm",
- &fragment, &width, &state)) {
+ if (!_PyArg_NoStackKeywords("lin2adpcm", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lin2adpcm", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*iO:lin2adpcm",
+ &fragment, &width, &state)) {
goto exit;
}
return_value = audioop_lin2adpcm_impl(module, &fragment, width, state);
int width;
PyObject *state;
- if (!_PyArg_ParseStack(args, nargs, "y*iO:adpcm2lin",
- &fragment, &width, &state)) {
+ if (!_PyArg_NoStackKeywords("adpcm2lin", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("adpcm2lin", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "y*iO:adpcm2lin",
+ &fragment, &width, &state)) {
goto exit;
}
return_value = audioop_adpcm2lin_impl(module, &fragment, width, state);
return return_value;
}
-/*[clinic end generated code: output=ee7c63ec28a11b78 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=4eaee23043922a41 input=a9049054013a1b77]*/
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);
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);
return return_value;
}
-/*[clinic end generated code: output=9db57e86dbe7b2fa input=a9049054013a1b77]*/
+/*[clinic end generated code: output=490f08a964e97390 input=a9049054013a1b77]*/
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=93eff5d4c242ee57 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=11a0b5bb8a652de6 input=a9049054013a1b77]*/
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=b67e9579722e6d4f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f189ac833d1448af input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=71806f73a5c4bf0b input=a9049054013a1b77]*/
+/*[clinic end generated code: output=c9f1ac6ded547cc8 input=a9049054013a1b77]*/
path_t path = PATH_T_INITIALIZE("execv", "path", 0, 0);
PyObject *argv;
- if (!_PyArg_ParseStack(args, nargs, "O&O:execv",
- path_converter, &path, &argv)) {
+ if (!_PyArg_NoStackKeywords("execv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("execv", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O&O:execv",
+ path_converter, &path, &argv)) {
goto exit;
}
return_value = os_execv_impl(module, &path, argv);
path_t path = PATH_T_INITIALIZE("spawnv", "path", 0, 0);
PyObject *argv;
- if (!_PyArg_ParseStack(args, nargs, "iO&O:spawnv",
- &mode, path_converter, &path, &argv)) {
+ if (!_PyArg_NoStackKeywords("spawnv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("spawnv", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&O:spawnv",
+ &mode, path_converter, &path, &argv)) {
goto exit;
}
return_value = os_spawnv_impl(module, mode, &path, argv);
PyObject *argv;
PyObject *env;
- if (!_PyArg_ParseStack(args, nargs, "iO&OO:spawnve",
- &mode, path_converter, &path, &argv, &env)) {
+ if (!_PyArg_NoStackKeywords("spawnve", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("spawnve", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&OO:spawnve",
+ &mode, path_converter, &path, &argv, &env)) {
goto exit;
}
return_value = os_spawnve_impl(module, mode, &path, argv, env);
int policy;
struct sched_param param;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "iO&:sched_setscheduler",
- &pid, &policy, convert_sched_param, ¶m)) {
+ if (!_PyArg_NoStackKeywords("sched_setscheduler", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("sched_setscheduler", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "iO&:sched_setscheduler",
+ &pid, &policy, convert_sched_param, ¶m)) {
goto exit;
}
return_value = os_sched_setscheduler_impl(module, pid, policy, ¶m);
pid_t pid;
struct sched_param param;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "O&:sched_setparam",
- &pid, convert_sched_param, ¶m)) {
+ if (!_PyArg_NoStackKeywords("sched_setparam", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("sched_setparam", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "O&:sched_setparam",
+ &pid, convert_sched_param, ¶m)) {
goto exit;
}
return_value = os_sched_setparam_impl(module, pid, ¶m);
pid_t pid;
PyObject *mask;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "O:sched_setaffinity",
- &pid, &mask)) {
+ if (!_PyArg_NoStackKeywords("sched_setaffinity", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("sched_setaffinity", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "O:sched_setaffinity",
+ &pid, &mask)) {
goto exit;
}
return_value = os_sched_setaffinity_impl(module, pid, mask);
pid_t pid;
Py_ssize_t signal;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "n:kill",
- &pid, &signal)) {
+ if (!_PyArg_NoStackKeywords("kill", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("kill", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "n:kill",
+ &pid, &signal)) {
goto exit;
}
return_value = os_kill_impl(module, pid, signal);
pid_t pgid;
int signal;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "i:killpg",
- &pgid, &signal)) {
+ if (!_PyArg_NoStackKeywords("killpg", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("killpg", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "i:killpg",
+ &pgid, &signal)) {
goto exit;
}
return_value = os_killpg_impl(module, pgid, signal);
uid_t ruid;
uid_t euid;
- if (!_PyArg_ParseStack(args, nargs, "O&O&:setreuid",
- _Py_Uid_Converter, &ruid, _Py_Uid_Converter, &euid)) {
+ if (!_PyArg_NoStackKeywords("setreuid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setreuid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O&O&:setreuid",
+ _Py_Uid_Converter, &ruid, _Py_Uid_Converter, &euid)) {
goto exit;
}
return_value = os_setreuid_impl(module, ruid, euid);
gid_t rgid;
gid_t egid;
- if (!_PyArg_ParseStack(args, nargs, "O&O&:setregid",
- _Py_Gid_Converter, &rgid, _Py_Gid_Converter, &egid)) {
+ if (!_PyArg_NoStackKeywords("setregid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setregid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O&O&:setregid",
+ _Py_Gid_Converter, &rgid, _Py_Gid_Converter, &egid)) {
goto exit;
}
return_value = os_setregid_impl(module, rgid, egid);
id_t id;
int options;
- if (!_PyArg_ParseStack(args, nargs, "i" _Py_PARSE_PID "i:waitid",
- &idtype, &id, &options)) {
+ if (!_PyArg_NoStackKeywords("waitid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("waitid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "i" _Py_PARSE_PID "i:waitid",
+ &idtype, &id, &options)) {
goto exit;
}
return_value = os_waitid_impl(module, idtype, id, options);
pid_t pid;
int options;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "i:waitpid",
- &pid, &options)) {
+ if (!_PyArg_NoStackKeywords("waitpid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("waitpid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "i:waitpid",
+ &pid, &options)) {
goto exit;
}
return_value = os_waitpid_impl(module, pid, options);
intptr_t pid;
int options;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_INTPTR "i:waitpid",
- &pid, &options)) {
+ if (!_PyArg_NoStackKeywords("waitpid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("waitpid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_INTPTR "i:waitpid",
+ &pid, &options)) {
goto exit;
}
return_value = os_waitpid_impl(module, pid, options);
pid_t pid;
pid_t pgrp;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "" _Py_PARSE_PID ":setpgid",
- &pid, &pgrp)) {
+ if (!_PyArg_NoStackKeywords("setpgid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setpgid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_PID "" _Py_PARSE_PID ":setpgid",
+ &pid, &pgrp)) {
goto exit;
}
return_value = os_setpgid_impl(module, pid, pgrp);
int fd;
pid_t pgid;
- if (!_PyArg_ParseStack(args, nargs, "i" _Py_PARSE_PID ":tcsetpgrp",
- &fd, &pgid)) {
+ if (!_PyArg_NoStackKeywords("tcsetpgrp", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("tcsetpgrp", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "i" _Py_PARSE_PID ":tcsetpgrp",
+ &fd, &pgid)) {
goto exit;
}
return_value = os_tcsetpgrp_impl(module, fd, pgid);
int fd_low;
int fd_high;
- if (!_PyArg_ParseStack(args, nargs, "ii:closerange",
- &fd_low, &fd_high)) {
+ if (!_PyArg_NoStackKeywords("closerange", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("closerange", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "ii:closerange",
+ &fd_low, &fd_high)) {
goto exit;
}
return_value = os_closerange_impl(module, fd_low, fd_high);
int command;
Py_off_t length;
- if (!_PyArg_ParseStack(args, nargs, "iiO&:lockf",
- &fd, &command, Py_off_t_converter, &length)) {
+ if (!_PyArg_NoStackKeywords("lockf", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lockf", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iiO&:lockf",
+ &fd, &command, Py_off_t_converter, &length)) {
goto exit;
}
return_value = os_lockf_impl(module, fd, command, length);
int how;
Py_off_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "iO&i:lseek",
- &fd, Py_off_t_converter, &position, &how)) {
+ if (!_PyArg_NoStackKeywords("lseek", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("lseek", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&i:lseek",
+ &fd, Py_off_t_converter, &position, &how)) {
goto exit;
}
_return_value = os_lseek_impl(module, fd, position, how);
int fd;
Py_ssize_t length;
- if (!_PyArg_ParseStack(args, nargs, "in:read",
- &fd, &length)) {
+ if (!_PyArg_NoStackKeywords("read", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("read", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "in:read",
+ &fd, &length)) {
goto exit;
}
return_value = os_read_impl(module, fd, length);
PyObject *buffers;
Py_ssize_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "iO:readv",
- &fd, &buffers)) {
+ if (!_PyArg_NoStackKeywords("readv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("readv", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO:readv",
+ &fd, &buffers)) {
goto exit;
}
_return_value = os_readv_impl(module, fd, buffers);
int length;
Py_off_t offset;
- if (!_PyArg_ParseStack(args, nargs, "iiO&:pread",
- &fd, &length, Py_off_t_converter, &offset)) {
+ if (!_PyArg_NoStackKeywords("pread", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("pread", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iiO&:pread",
+ &fd, &length, Py_off_t_converter, &offset)) {
goto exit;
}
return_value = os_pread_impl(module, fd, length, offset);
Py_buffer data = {NULL, NULL};
Py_ssize_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "iy*:write",
- &fd, &data)) {
+ if (!_PyArg_NoStackKeywords("write", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("write", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iy*:write",
+ &fd, &data)) {
goto exit;
}
_return_value = os_write_impl(module, fd, &data);
PyObject *buffers;
Py_ssize_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "iO:writev",
- &fd, &buffers)) {
+ if (!_PyArg_NoStackKeywords("writev", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("writev", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO:writev",
+ &fd, &buffers)) {
goto exit;
}
_return_value = os_writev_impl(module, fd, buffers);
Py_off_t offset;
Py_ssize_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "iy*O&:pwrite",
- &fd, &buffer, Py_off_t_converter, &offset)) {
+ if (!_PyArg_NoStackKeywords("pwrite", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("pwrite", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iy*O&:pwrite",
+ &fd, &buffer, Py_off_t_converter, &offset)) {
goto exit;
}
_return_value = os_pwrite_impl(module, fd, &buffer, offset);
int minor;
dev_t _return_value;
- if (!_PyArg_ParseStack(args, nargs, "ii:makedev",
- &major, &minor)) {
+ if (!_PyArg_NoStackKeywords("makedev", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("makedev", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "ii:makedev",
+ &major, &minor)) {
goto exit;
}
_return_value = os_makedev_impl(module, major, minor);
int fd;
Py_off_t length;
- if (!_PyArg_ParseStack(args, nargs, "iO&:ftruncate",
- &fd, Py_off_t_converter, &length)) {
+ if (!_PyArg_NoStackKeywords("ftruncate", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("ftruncate", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&:ftruncate",
+ &fd, Py_off_t_converter, &length)) {
goto exit;
}
return_value = os_ftruncate_impl(module, fd, length);
Py_off_t offset;
Py_off_t length;
- if (!_PyArg_ParseStack(args, nargs, "iO&O&:posix_fallocate",
- &fd, Py_off_t_converter, &offset, Py_off_t_converter, &length)) {
+ if (!_PyArg_NoStackKeywords("posix_fallocate", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("posix_fallocate", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&O&:posix_fallocate",
+ &fd, Py_off_t_converter, &offset, Py_off_t_converter, &length)) {
goto exit;
}
return_value = os_posix_fallocate_impl(module, fd, offset, length);
Py_off_t length;
int advice;
- if (!_PyArg_ParseStack(args, nargs, "iO&O&i:posix_fadvise",
- &fd, Py_off_t_converter, &offset, Py_off_t_converter, &length, &advice)) {
+ if (!_PyArg_NoStackKeywords("posix_fadvise", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("posix_fadvise", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&O&i:posix_fadvise",
+ &fd, Py_off_t_converter, &offset, Py_off_t_converter, &length, &advice)) {
goto exit;
}
return_value = os_posix_fadvise_impl(module, fd, offset, length, advice);
PyObject *name;
PyObject *value;
- if (!_PyArg_ParseStack(args, nargs, "UU:putenv",
- &name, &value)) {
+ if (!_PyArg_NoStackKeywords("putenv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("putenv", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "UU:putenv",
+ &name, &value)) {
goto exit;
}
return_value = os_putenv_impl(module, name, value);
PyObject *name = NULL;
PyObject *value = NULL;
- if (!_PyArg_ParseStack(args, nargs, "O&O&:putenv",
- PyUnicode_FSConverter, &name, PyUnicode_FSConverter, &value)) {
+ if (!_PyArg_NoStackKeywords("putenv", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("putenv", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O&O&:putenv",
+ PyUnicode_FSConverter, &name, PyUnicode_FSConverter, &value)) {
goto exit;
}
return_value = os_putenv_impl(module, name, value);
int name;
long _return_value;
- if (!_PyArg_ParseStack(args, nargs, "iO&:fpathconf",
- &fd, conv_path_confname, &name)) {
+ if (!_PyArg_NoStackKeywords("fpathconf", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("fpathconf", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "iO&:fpathconf",
+ &fd, conv_path_confname, &name)) {
goto exit;
}
_return_value = os_fpathconf_impl(module, fd, name);
uid_t euid;
uid_t suid;
- if (!_PyArg_ParseStack(args, nargs, "O&O&O&:setresuid",
- _Py_Uid_Converter, &ruid, _Py_Uid_Converter, &euid, _Py_Uid_Converter, &suid)) {
+ if (!_PyArg_NoStackKeywords("setresuid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setresuid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O&O&O&:setresuid",
+ _Py_Uid_Converter, &ruid, _Py_Uid_Converter, &euid, _Py_Uid_Converter, &suid)) {
goto exit;
}
return_value = os_setresuid_impl(module, ruid, euid, suid);
gid_t egid;
gid_t sgid;
- if (!_PyArg_ParseStack(args, nargs, "O&O&O&:setresgid",
- _Py_Gid_Converter, &rgid, _Py_Gid_Converter, &egid, _Py_Gid_Converter, &sgid)) {
+ if (!_PyArg_NoStackKeywords("setresgid", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setresgid", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O&O&O&:setresgid",
+ _Py_Gid_Converter, &rgid, _Py_Gid_Converter, &egid, _Py_Gid_Converter, &sgid)) {
goto exit;
}
return_value = os_setresgid_impl(module, rgid, egid, sgid);
int fd;
int inheritable;
- if (!_PyArg_ParseStack(args, nargs, "ii:set_inheritable",
- &fd, &inheritable)) {
+ if (!_PyArg_NoStackKeywords("set_inheritable", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("set_inheritable", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "ii:set_inheritable",
+ &fd, &inheritable)) {
goto exit;
}
return_value = os_set_inheritable_impl(module, fd, inheritable);
intptr_t handle;
int inheritable;
- if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_INTPTR "p:set_handle_inheritable",
- &handle, &inheritable)) {
+ if (!_PyArg_NoStackKeywords("set_handle_inheritable", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("set_handle_inheritable", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "" _Py_PARSE_INTPTR "p:set_handle_inheritable",
+ &handle, &inheritable)) {
goto exit;
}
return_value = os_set_handle_inheritable_impl(module, handle, inheritable);
#ifndef OS_GETRANDOM_METHODDEF
#define OS_GETRANDOM_METHODDEF
#endif /* !defined(OS_GETRANDOM_METHODDEF) */
-/*[clinic end generated code: output=dce741f527ddbfa4 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=499329dda38d40c9 input=a9049054013a1b77]*/
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);
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);
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);
#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]*/
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);
#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]*/
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);
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);
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);
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);
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);
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);
#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]*/
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=071dee4d836e2cfd input=a9049054013a1b77]*/
+/*[clinic end generated code: output=388595f822b1fc79 input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=fcb86aaa3fa40876 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f69c0bbd7294870b input=a9049054013a1b77]*/
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);
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);
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);
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);
#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]*/
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);
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);
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);
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);
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);
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);
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);
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);
{
return bytearray_sizeof_impl(self);
}
-/*[clinic end generated code: output=f5c364927425fae8 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f0079d8ee82614f7 input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=2504c1225108d348 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a82999760469bbec input=a9049054013a1b77]*/
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=4d57df133cf66e53 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=49e03ab4360f5be0 input=a9049054013a1b77]*/
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=dc6b0b67a7e40c93 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=b2271e7413b36162 input=a9049054013a1b77]*/
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);
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);
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);
{
return list___reversed___impl(self);
}
-/*[clinic end generated code: output=71deae70ca0e6799 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=63cbe6d6320e916f input=a9049054013a1b77]*/
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);
{
return tuple___getnewargs___impl(self);
}
-/*[clinic end generated code: output=145bcfff64e8c809 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=70b4de94a0002ec3 input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
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);
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);
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);
{
return unicode_sizeof_impl(self);
}
-/*[clinic end generated code: output=88b06f61edd282f9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=339a83c0c100dd17 input=a9049054013a1b77]*/
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);
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);
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);
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);
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);
#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]*/
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
exit:
return return_value;
}
-/*[clinic end generated code: output=ddc72b006143d33d input=a9049054013a1b77]*/
+/*[clinic end generated code: output=57f166c252c5ba7a input=a9049054013a1b77]*/
PyObject *value;
PyObject *format_spec = NULL;
- if (!_PyArg_ParseStack(args, nargs, "O|U:format",
- &value, &format_spec)) {
+ if (!_PyArg_NoStackKeywords("format", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("format", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O|U:format",
+ &value, &format_spec)) {
goto exit;
}
return_value = builtin_format_impl(module, value, format_spec);
PyObject *x;
PyObject *y;
- if (!_PyArg_UnpackStack(args, nargs, "divmod",
- 2, 2,
- &x, &y)) {
+ if (!_PyArg_NoStackKeywords("divmod", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("divmod", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "divmod",
+ 2, 2,
+ &x, &y)) {
goto exit;
}
return_value = builtin_divmod_impl(module, x, y);
PyObject *globals = Py_None;
PyObject *locals = Py_None;
- if (!_PyArg_UnpackStack(args, nargs, "eval",
- 1, 3,
- &source, &globals, &locals)) {
+ if (!_PyArg_NoStackKeywords("eval", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("eval", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "eval",
+ 1, 3,
+ &source, &globals, &locals)) {
goto exit;
}
return_value = builtin_eval_impl(module, source, globals, locals);
PyObject *globals = Py_None;
PyObject *locals = Py_None;
- if (!_PyArg_UnpackStack(args, nargs, "exec",
- 1, 3,
- &source, &globals, &locals)) {
+ if (!_PyArg_NoStackKeywords("exec", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("exec", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "exec",
+ 1, 3,
+ &source, &globals, &locals)) {
goto exit;
}
return_value = builtin_exec_impl(module, source, globals, locals);
PyObject *obj;
PyObject *name;
- if (!_PyArg_UnpackStack(args, nargs, "hasattr",
- 2, 2,
- &obj, &name)) {
+ if (!_PyArg_NoStackKeywords("hasattr", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("hasattr", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "hasattr",
+ 2, 2,
+ &obj, &name)) {
goto exit;
}
return_value = builtin_hasattr_impl(module, obj, name);
PyObject *name;
PyObject *value;
- if (!_PyArg_UnpackStack(args, nargs, "setattr",
- 3, 3,
- &obj, &name, &value)) {
+ if (!_PyArg_NoStackKeywords("setattr", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("setattr", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "setattr",
+ 3, 3,
+ &obj, &name, &value)) {
goto exit;
}
return_value = builtin_setattr_impl(module, obj, name, value);
PyObject *obj;
PyObject *name;
- if (!_PyArg_UnpackStack(args, nargs, "delattr",
- 2, 2,
- &obj, &name)) {
+ if (!_PyArg_NoStackKeywords("delattr", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("delattr", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "delattr",
+ 2, 2,
+ &obj, &name)) {
goto exit;
}
return_value = builtin_delattr_impl(module, obj, name);
PyObject *y;
PyObject *z = Py_None;
- if (!_PyArg_UnpackStack(args, nargs, "pow",
- 2, 3,
- &x, &y, &z)) {
+ if (!_PyArg_NoStackKeywords("pow", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("pow", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "pow",
+ 2, 3,
+ &x, &y, &z)) {
goto exit;
}
return_value = builtin_pow_impl(module, x, y, z);
PyObject *return_value = NULL;
PyObject *prompt = NULL;
- if (!_PyArg_UnpackStack(args, nargs, "input",
- 0, 1,
- &prompt)) {
+ if (!_PyArg_NoStackKeywords("input", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("input", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "input",
+ 0, 1,
+ &prompt)) {
goto exit;
}
return_value = builtin_input_impl(module, prompt);
PyObject *iterable;
PyObject *start = NULL;
- if (!_PyArg_UnpackStack(args, nargs, "sum",
- 1, 2,
- &iterable, &start)) {
+ if (!_PyArg_NoStackKeywords("sum", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("sum", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "sum",
+ 1, 2,
+ &iterable, &start)) {
goto exit;
}
return_value = builtin_sum_impl(module, iterable, start);
PyObject *obj;
PyObject *class_or_tuple;
- if (!_PyArg_UnpackStack(args, nargs, "isinstance",
- 2, 2,
- &obj, &class_or_tuple)) {
+ if (!_PyArg_NoStackKeywords("isinstance", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("isinstance", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "isinstance",
+ 2, 2,
+ &obj, &class_or_tuple)) {
goto exit;
}
return_value = builtin_isinstance_impl(module, obj, class_or_tuple);
PyObject *cls;
PyObject *class_or_tuple;
- if (!_PyArg_UnpackStack(args, nargs, "issubclass",
- 2, 2,
- &cls, &class_or_tuple)) {
+ if (!_PyArg_NoStackKeywords("issubclass", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("issubclass", kwnames)) {
+ if (!_PyArg_UnpackStack(args, nargs, "issubclass",
+ 2, 2,
+ &cls, &class_or_tuple)) {
goto exit;
}
return_value = builtin_issubclass_impl(module, cls, class_or_tuple);
exit:
return return_value;
}
-/*[clinic end generated code: output=17fedd2dec148677 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e1a7417a7b33eeec input=a9049054013a1b77]*/
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);
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);
#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]*/
PyObject *file;
int version = Py_MARSHAL_VERSION;
- if (!_PyArg_ParseStack(args, nargs, "OO|i:dump",
- &value, &file, &version)) {
+ if (!_PyArg_NoStackKeywords("dump", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("dump", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "OO|i:dump",
+ &value, &file, &version)) {
goto exit;
}
return_value = marshal_dump_impl(module, value, file, version);
PyObject *value;
int version = Py_MARSHAL_VERSION;
- if (!_PyArg_ParseStack(args, nargs, "O|i:dumps",
- &value, &version)) {
+ if (!_PyArg_NoStackKeywords("dumps", kwnames)) {
goto exit;
}
- if (!_PyArg_NoStackKeywords("dumps", kwnames)) {
+ if (!_PyArg_ParseStack(args, nargs, "O|i:dumps",
+ &value, &version)) {
goto exit;
}
return_value = marshal_dumps_impl(module, value, version);
return return_value;
}
-/*[clinic end generated code: output=9dec2158b8c5d975 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=7b147a648614af7e input=a9049054013a1b77]*/
parser_prototype = parser_prototype_fastcall
parser_definition = parser_body(parser_prototype, normalize_snippet("""
- if (!_PyArg_UnpackStack(args, nargs, "{name}",
- {unpack_min}, {unpack_max},
- {parse_arguments})) {{
+ if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{
goto exit;
}}
- if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{
+ if (!_PyArg_UnpackStack(args, nargs, "{name}",
+ {unpack_min}, {unpack_max},
+ {parse_arguments})) {{
goto exit;
}}
""", indent=4))
parser_prototype = parser_prototype_fastcall
parser_definition = parser_body(parser_prototype, normalize_snippet("""
- if (!_PyArg_ParseStack(args, nargs, "{format_units}:{name}",
- {parse_arguments})) {{
+ if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{
goto exit;
}}
- if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{
+ if (!_PyArg_ParseStack(args, nargs, "{format_units}:{name}",
+ {parse_arguments})) {{
goto exit;
}}
""", indent=4))