Commit 37e4ef7b authored by Victor Stinner's avatar Victor Stinner

Issue #27810: Rerun Argument Clinic on all modules

parent f0ccbbbc
...@@ -115,14 +115,14 @@ PyDoc_STRVAR(_bz2_BZ2Decompressor_decompress__doc__, ...@@ -115,14 +115,14 @@ PyDoc_STRVAR(_bz2_BZ2Decompressor_decompress__doc__,
"the unused_data attribute."); "the unused_data attribute.");
#define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \ #define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_VARARGS|METH_KEYWORDS, _bz2_BZ2Decompressor_decompress__doc__}, {"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_FASTCALL, _bz2_BZ2Decompressor_decompress__doc__},
static PyObject * static PyObject *
_bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data, _bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data,
Py_ssize_t max_length); Py_ssize_t max_length);
static PyObject * static PyObject *
_bz2_BZ2Decompressor_decompress(BZ2Decompressor *self, PyObject *args, PyObject *kwargs) _bz2_BZ2Decompressor_decompress(BZ2Decompressor *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"data", "max_length", NULL}; static const char * const _keywords[] = {"data", "max_length", NULL};
...@@ -130,7 +130,7 @@ _bz2_BZ2Decompressor_decompress(BZ2Decompressor *self, PyObject *args, PyObject ...@@ -130,7 +130,7 @@ _bz2_BZ2Decompressor_decompress(BZ2Decompressor *self, PyObject *args, PyObject
Py_buffer data = {NULL, NULL}; Py_buffer data = {NULL, NULL};
Py_ssize_t max_length = -1; Py_ssize_t max_length = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &max_length)) { &data, &max_length)) {
goto exit; goto exit;
} }
...@@ -174,4 +174,4 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs) ...@@ -174,4 +174,4 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=40e5ef049f9e719b input=a9049054013a1b77]*/ /*[clinic end generated code: output=7e57af0b368d3e55 input=a9049054013a1b77]*/
...@@ -55,14 +55,14 @@ PyDoc_STRVAR(_codecs_encode__doc__, ...@@ -55,14 +55,14 @@ PyDoc_STRVAR(_codecs_encode__doc__,
"codecs.register_error that can handle ValueErrors."); "codecs.register_error that can handle ValueErrors.");
#define _CODECS_ENCODE_METHODDEF \ #define _CODECS_ENCODE_METHODDEF \
{"encode", (PyCFunction)_codecs_encode, METH_VARARGS|METH_KEYWORDS, _codecs_encode__doc__}, {"encode", (PyCFunction)_codecs_encode, METH_FASTCALL, _codecs_encode__doc__},
static PyObject * static PyObject *
_codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding, _codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
const char *errors); const char *errors);
static PyObject * static PyObject *
_codecs_encode(PyObject *module, PyObject *args, PyObject *kwargs) _codecs_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"obj", "encoding", "errors", NULL}; static const char * const _keywords[] = {"obj", "encoding", "errors", NULL};
...@@ -71,7 +71,7 @@ _codecs_encode(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -71,7 +71,7 @@ _codecs_encode(PyObject *module, PyObject *args, PyObject *kwargs)
const char *encoding = NULL; const char *encoding = NULL;
const char *errors = NULL; const char *errors = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&obj, &encoding, &errors)) { &obj, &encoding, &errors)) {
goto exit; goto exit;
} }
...@@ -94,14 +94,14 @@ PyDoc_STRVAR(_codecs_decode__doc__, ...@@ -94,14 +94,14 @@ PyDoc_STRVAR(_codecs_decode__doc__,
"codecs.register_error that can handle ValueErrors."); "codecs.register_error that can handle ValueErrors.");
#define _CODECS_DECODE_METHODDEF \ #define _CODECS_DECODE_METHODDEF \
{"decode", (PyCFunction)_codecs_decode, METH_VARARGS|METH_KEYWORDS, _codecs_decode__doc__}, {"decode", (PyCFunction)_codecs_decode, METH_FASTCALL, _codecs_decode__doc__},
static PyObject * static PyObject *
_codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding, _codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding,
const char *errors); const char *errors);
static PyObject * static PyObject *
_codecs_decode(PyObject *module, PyObject *args, PyObject *kwargs) _codecs_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"obj", "encoding", "errors", NULL}; static const char * const _keywords[] = {"obj", "encoding", "errors", NULL};
...@@ -110,7 +110,7 @@ _codecs_decode(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -110,7 +110,7 @@ _codecs_decode(PyObject *module, PyObject *args, PyObject *kwargs)
const char *encoding = NULL; const char *encoding = NULL;
const char *errors = NULL; const char *errors = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&obj, &encoding, &errors)) { &obj, &encoding, &errors)) {
goto exit; goto exit;
} }
...@@ -1536,4 +1536,4 @@ exit: ...@@ -1536,4 +1536,4 @@ exit:
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF #ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF #define _CODECS_CODE_PAGE_ENCODE_METHODDEF
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */ #endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
/*[clinic end generated code: output=ebe313ab417b17bb input=a9049054013a1b77]*/ /*[clinic end generated code: output=6d6afcabde10ed79 input=a9049054013a1b77]*/
...@@ -14,20 +14,20 @@ PyDoc_STRVAR(datetime_datetime_now__doc__, ...@@ -14,20 +14,20 @@ PyDoc_STRVAR(datetime_datetime_now__doc__,
"If no tz is specified, uses local timezone."); "If no tz is specified, uses local timezone.");
#define DATETIME_DATETIME_NOW_METHODDEF \ #define DATETIME_DATETIME_NOW_METHODDEF \
{"now", (PyCFunction)datetime_datetime_now, METH_VARARGS|METH_KEYWORDS|METH_CLASS, datetime_datetime_now__doc__}, {"now", (PyCFunction)datetime_datetime_now, METH_FASTCALL|METH_CLASS, datetime_datetime_now__doc__},
static PyObject * static PyObject *
datetime_datetime_now_impl(PyTypeObject *type, PyObject *tz); datetime_datetime_now_impl(PyTypeObject *type, PyObject *tz);
static PyObject * static PyObject *
datetime_datetime_now(PyTypeObject *type, PyObject *args, PyObject *kwargs) datetime_datetime_now(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"tz", NULL}; static const char * const _keywords[] = {"tz", NULL};
static _PyArg_Parser _parser = {"|O:now", _keywords, 0}; static _PyArg_Parser _parser = {"|O:now", _keywords, 0};
PyObject *tz = Py_None; PyObject *tz = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&tz)) { &tz)) {
goto exit; goto exit;
} }
...@@ -36,4 +36,4 @@ datetime_datetime_now(PyTypeObject *type, PyObject *args, PyObject *kwargs) ...@@ -36,4 +36,4 @@ datetime_datetime_now(PyTypeObject *type, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=61f85af5637df8b5 input=a9049054013a1b77]*/ /*[clinic end generated code: output=8aaac0705add61ca input=a9049054013a1b77]*/
...@@ -136,14 +136,14 @@ PyDoc_STRVAR(_elementtree_Element_find__doc__, ...@@ -136,14 +136,14 @@ PyDoc_STRVAR(_elementtree_Element_find__doc__,
"\n"); "\n");
#define _ELEMENTTREE_ELEMENT_FIND_METHODDEF \ #define _ELEMENTTREE_ELEMENT_FIND_METHODDEF \
{"find", (PyCFunction)_elementtree_Element_find, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_find__doc__}, {"find", (PyCFunction)_elementtree_Element_find, METH_FASTCALL, _elementtree_Element_find__doc__},
static PyObject * static PyObject *
_elementtree_Element_find_impl(ElementObject *self, PyObject *path, _elementtree_Element_find_impl(ElementObject *self, PyObject *path,
PyObject *namespaces); PyObject *namespaces);
static PyObject * static PyObject *
_elementtree_Element_find(ElementObject *self, PyObject *args, PyObject *kwargs) _elementtree_Element_find(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"path", "namespaces", NULL}; static const char * const _keywords[] = {"path", "namespaces", NULL};
...@@ -151,7 +151,7 @@ _elementtree_Element_find(ElementObject *self, PyObject *args, PyObject *kwargs) ...@@ -151,7 +151,7 @@ _elementtree_Element_find(ElementObject *self, PyObject *args, PyObject *kwargs)
PyObject *path; PyObject *path;
PyObject *namespaces = Py_None; PyObject *namespaces = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&path, &namespaces)) { &path, &namespaces)) {
goto exit; goto exit;
} }
...@@ -167,7 +167,7 @@ PyDoc_STRVAR(_elementtree_Element_findtext__doc__, ...@@ -167,7 +167,7 @@ PyDoc_STRVAR(_elementtree_Element_findtext__doc__,
"\n"); "\n");
#define _ELEMENTTREE_ELEMENT_FINDTEXT_METHODDEF \ #define _ELEMENTTREE_ELEMENT_FINDTEXT_METHODDEF \
{"findtext", (PyCFunction)_elementtree_Element_findtext, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_findtext__doc__}, {"findtext", (PyCFunction)_elementtree_Element_findtext, METH_FASTCALL, _elementtree_Element_findtext__doc__},
static PyObject * static PyObject *
_elementtree_Element_findtext_impl(ElementObject *self, PyObject *path, _elementtree_Element_findtext_impl(ElementObject *self, PyObject *path,
...@@ -175,7 +175,7 @@ _elementtree_Element_findtext_impl(ElementObject *self, PyObject *path, ...@@ -175,7 +175,7 @@ _elementtree_Element_findtext_impl(ElementObject *self, PyObject *path,
PyObject *namespaces); PyObject *namespaces);
static PyObject * static PyObject *
_elementtree_Element_findtext(ElementObject *self, PyObject *args, PyObject *kwargs) _elementtree_Element_findtext(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"path", "default", "namespaces", NULL}; static const char * const _keywords[] = {"path", "default", "namespaces", NULL};
...@@ -184,7 +184,7 @@ _elementtree_Element_findtext(ElementObject *self, PyObject *args, PyObject *kwa ...@@ -184,7 +184,7 @@ _elementtree_Element_findtext(ElementObject *self, PyObject *args, PyObject *kwa
PyObject *default_value = Py_None; PyObject *default_value = Py_None;
PyObject *namespaces = Py_None; PyObject *namespaces = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&path, &default_value, &namespaces)) { &path, &default_value, &namespaces)) {
goto exit; goto exit;
} }
...@@ -200,14 +200,14 @@ PyDoc_STRVAR(_elementtree_Element_findall__doc__, ...@@ -200,14 +200,14 @@ PyDoc_STRVAR(_elementtree_Element_findall__doc__,
"\n"); "\n");
#define _ELEMENTTREE_ELEMENT_FINDALL_METHODDEF \ #define _ELEMENTTREE_ELEMENT_FINDALL_METHODDEF \
{"findall", (PyCFunction)_elementtree_Element_findall, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_findall__doc__}, {"findall", (PyCFunction)_elementtree_Element_findall, METH_FASTCALL, _elementtree_Element_findall__doc__},
static PyObject * static PyObject *
_elementtree_Element_findall_impl(ElementObject *self, PyObject *path, _elementtree_Element_findall_impl(ElementObject *self, PyObject *path,
PyObject *namespaces); PyObject *namespaces);
static PyObject * static PyObject *
_elementtree_Element_findall(ElementObject *self, PyObject *args, PyObject *kwargs) _elementtree_Element_findall(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"path", "namespaces", NULL}; static const char * const _keywords[] = {"path", "namespaces", NULL};
...@@ -215,7 +215,7 @@ _elementtree_Element_findall(ElementObject *self, PyObject *args, PyObject *kwar ...@@ -215,7 +215,7 @@ _elementtree_Element_findall(ElementObject *self, PyObject *args, PyObject *kwar
PyObject *path; PyObject *path;
PyObject *namespaces = Py_None; PyObject *namespaces = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&path, &namespaces)) { &path, &namespaces)) {
goto exit; goto exit;
} }
...@@ -231,14 +231,14 @@ PyDoc_STRVAR(_elementtree_Element_iterfind__doc__, ...@@ -231,14 +231,14 @@ PyDoc_STRVAR(_elementtree_Element_iterfind__doc__,
"\n"); "\n");
#define _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF \ #define _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF \
{"iterfind", (PyCFunction)_elementtree_Element_iterfind, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_iterfind__doc__}, {"iterfind", (PyCFunction)_elementtree_Element_iterfind, METH_FASTCALL, _elementtree_Element_iterfind__doc__},
static PyObject * static PyObject *
_elementtree_Element_iterfind_impl(ElementObject *self, PyObject *path, _elementtree_Element_iterfind_impl(ElementObject *self, PyObject *path,
PyObject *namespaces); PyObject *namespaces);
static PyObject * static PyObject *
_elementtree_Element_iterfind(ElementObject *self, PyObject *args, PyObject *kwargs) _elementtree_Element_iterfind(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"path", "namespaces", NULL}; static const char * const _keywords[] = {"path", "namespaces", NULL};
...@@ -246,7 +246,7 @@ _elementtree_Element_iterfind(ElementObject *self, PyObject *args, PyObject *kwa ...@@ -246,7 +246,7 @@ _elementtree_Element_iterfind(ElementObject *self, PyObject *args, PyObject *kwa
PyObject *path; PyObject *path;
PyObject *namespaces = Py_None; PyObject *namespaces = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&path, &namespaces)) { &path, &namespaces)) {
goto exit; goto exit;
} }
...@@ -262,14 +262,14 @@ PyDoc_STRVAR(_elementtree_Element_get__doc__, ...@@ -262,14 +262,14 @@ PyDoc_STRVAR(_elementtree_Element_get__doc__,
"\n"); "\n");
#define _ELEMENTTREE_ELEMENT_GET_METHODDEF \ #define _ELEMENTTREE_ELEMENT_GET_METHODDEF \
{"get", (PyCFunction)_elementtree_Element_get, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_get__doc__}, {"get", (PyCFunction)_elementtree_Element_get, METH_FASTCALL, _elementtree_Element_get__doc__},
static PyObject * static PyObject *
_elementtree_Element_get_impl(ElementObject *self, PyObject *key, _elementtree_Element_get_impl(ElementObject *self, PyObject *key,
PyObject *default_value); PyObject *default_value);
static PyObject * static PyObject *
_elementtree_Element_get(ElementObject *self, PyObject *args, PyObject *kwargs) _elementtree_Element_get(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"key", "default", NULL}; static const char * const _keywords[] = {"key", "default", NULL};
...@@ -277,7 +277,7 @@ _elementtree_Element_get(ElementObject *self, PyObject *args, PyObject *kwargs) ...@@ -277,7 +277,7 @@ _elementtree_Element_get(ElementObject *self, PyObject *args, PyObject *kwargs)
PyObject *key; PyObject *key;
PyObject *default_value = Py_None; PyObject *default_value = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&key, &default_value)) { &key, &default_value)) {
goto exit; goto exit;
} }
...@@ -310,20 +310,20 @@ PyDoc_STRVAR(_elementtree_Element_iter__doc__, ...@@ -310,20 +310,20 @@ PyDoc_STRVAR(_elementtree_Element_iter__doc__,
"\n"); "\n");
#define _ELEMENTTREE_ELEMENT_ITER_METHODDEF \ #define _ELEMENTTREE_ELEMENT_ITER_METHODDEF \
{"iter", (PyCFunction)_elementtree_Element_iter, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_iter__doc__}, {"iter", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL, _elementtree_Element_iter__doc__},
static PyObject * static PyObject *
_elementtree_Element_iter_impl(ElementObject *self, PyObject *tag); _elementtree_Element_iter_impl(ElementObject *self, PyObject *tag);
static PyObject * static PyObject *
_elementtree_Element_iter(ElementObject *self, PyObject *args, PyObject *kwargs) _elementtree_Element_iter(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"tag", NULL}; static const char * const _keywords[] = {"tag", NULL};
static _PyArg_Parser _parser = {"|O:iter", _keywords, 0}; static _PyArg_Parser _parser = {"|O:iter", _keywords, 0};
PyObject *tag = Py_None; PyObject *tag = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&tag)) { &tag)) {
goto exit; goto exit;
} }
...@@ -702,4 +702,4 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject *args) ...@@ -702,4 +702,4 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject *args)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=4c5e94c28a009ce6 input=a9049054013a1b77]*/ /*[clinic end generated code: output=b4a571a98ced3163 input=a9049054013a1b77]*/
...@@ -12,7 +12,7 @@ PyDoc_STRVAR(_hashlib_scrypt__doc__, ...@@ -12,7 +12,7 @@ PyDoc_STRVAR(_hashlib_scrypt__doc__,
"scrypt password-based key derivation function."); "scrypt password-based key derivation function.");
#define _HASHLIB_SCRYPT_METHODDEF \ #define _HASHLIB_SCRYPT_METHODDEF \
{"scrypt", (PyCFunction)_hashlib_scrypt, METH_VARARGS|METH_KEYWORDS, _hashlib_scrypt__doc__}, {"scrypt", (PyCFunction)_hashlib_scrypt, METH_FASTCALL, _hashlib_scrypt__doc__},
static PyObject * static PyObject *
_hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt, _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt,
...@@ -20,7 +20,7 @@ _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt, ...@@ -20,7 +20,7 @@ _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt,
long maxmem, long dklen); long maxmem, long dklen);
static PyObject * static PyObject *
_hashlib_scrypt(PyObject *module, PyObject *args, PyObject *kwargs) _hashlib_scrypt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"password", "salt", "n", "r", "p", "maxmem", "dklen", NULL}; static const char * const _keywords[] = {"password", "salt", "n", "r", "p", "maxmem", "dklen", NULL};
...@@ -33,7 +33,7 @@ _hashlib_scrypt(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -33,7 +33,7 @@ _hashlib_scrypt(PyObject *module, PyObject *args, PyObject *kwargs)
long maxmem = 0; long maxmem = 0;
long dklen = 64; long dklen = 64;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&password, &salt, &PyLong_Type, &n_obj, &PyLong_Type, &r_obj, &PyLong_Type, &p_obj, &maxmem, &dklen)) { &password, &salt, &PyLong_Type, &n_obj, &PyLong_Type, &r_obj, &PyLong_Type, &p_obj, &maxmem, &dklen)) {
goto exit; goto exit;
} }
...@@ -57,4 +57,4 @@ exit: ...@@ -57,4 +57,4 @@ exit:
#ifndef _HASHLIB_SCRYPT_METHODDEF #ifndef _HASHLIB_SCRYPT_METHODDEF
#define _HASHLIB_SCRYPT_METHODDEF #define _HASHLIB_SCRYPT_METHODDEF
#endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */ #endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */
/*[clinic end generated code: output=8c5386789f77430a input=a9049054013a1b77]*/ /*[clinic end generated code: output=118cd7036fa0fb52 input=a9049054013a1b77]*/
...@@ -81,14 +81,14 @@ PyDoc_STRVAR(_lzma_LZMADecompressor_decompress__doc__, ...@@ -81,14 +81,14 @@ PyDoc_STRVAR(_lzma_LZMADecompressor_decompress__doc__,
"the unused_data attribute."); "the unused_data attribute.");
#define _LZMA_LZMADECOMPRESSOR_DECOMPRESS_METHODDEF \ #define _LZMA_LZMADECOMPRESSOR_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_VARARGS|METH_KEYWORDS, _lzma_LZMADecompressor_decompress__doc__}, {"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_FASTCALL, _lzma_LZMADecompressor_decompress__doc__},
static PyObject * static PyObject *
_lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data, _lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data,
Py_ssize_t max_length); Py_ssize_t max_length);
static PyObject * static PyObject *
_lzma_LZMADecompressor_decompress(Decompressor *self, PyObject *args, PyObject *kwargs) _lzma_LZMADecompressor_decompress(Decompressor *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"data", "max_length", NULL}; static const char * const _keywords[] = {"data", "max_length", NULL};
...@@ -96,7 +96,7 @@ _lzma_LZMADecompressor_decompress(Decompressor *self, PyObject *args, PyObject * ...@@ -96,7 +96,7 @@ _lzma_LZMADecompressor_decompress(Decompressor *self, PyObject *args, PyObject *
Py_buffer data = {NULL, NULL}; Py_buffer data = {NULL, NULL};
Py_ssize_t max_length = -1; Py_ssize_t max_length = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &max_length)) { &data, &max_length)) {
goto exit; goto exit;
} }
...@@ -256,4 +256,4 @@ exit: ...@@ -256,4 +256,4 @@ exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=9434583fe111c771 input=a9049054013a1b77]*/ /*[clinic end generated code: output=f27abae460122706 input=a9049054013a1b77]*/
...@@ -384,14 +384,14 @@ PyDoc_STRVAR(_pickle_dump__doc__, ...@@ -384,14 +384,14 @@ PyDoc_STRVAR(_pickle_dump__doc__,
"2, so that the pickle data stream is readable with Python 2."); "2, so that the pickle data stream is readable with Python 2.");
#define _PICKLE_DUMP_METHODDEF \ #define _PICKLE_DUMP_METHODDEF \
{"dump", (PyCFunction)_pickle_dump, METH_VARARGS|METH_KEYWORDS, _pickle_dump__doc__}, {"dump", (PyCFunction)_pickle_dump, METH_FASTCALL, _pickle_dump__doc__},
static PyObject * static PyObject *
_pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file, _pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file,
PyObject *protocol, int fix_imports); PyObject *protocol, int fix_imports);
static PyObject * static PyObject *
_pickle_dump(PyObject *module, PyObject *args, PyObject *kwargs) _pickle_dump(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"obj", "file", "protocol", "fix_imports", NULL}; static const char * const _keywords[] = {"obj", "file", "protocol", "fix_imports", NULL};
...@@ -401,7 +401,7 @@ _pickle_dump(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -401,7 +401,7 @@ _pickle_dump(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject *protocol = NULL; PyObject *protocol = NULL;
int fix_imports = 1; int fix_imports = 1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&obj, &file, &protocol, &fix_imports)) { &obj, &file, &protocol, &fix_imports)) {
goto exit; goto exit;
} }
...@@ -430,14 +430,14 @@ PyDoc_STRVAR(_pickle_dumps__doc__, ...@@ -430,14 +430,14 @@ PyDoc_STRVAR(_pickle_dumps__doc__,
"Python 2, so that the pickle data stream is readable with Python 2."); "Python 2, so that the pickle data stream is readable with Python 2.");
#define _PICKLE_DUMPS_METHODDEF \ #define _PICKLE_DUMPS_METHODDEF \
{"dumps", (PyCFunction)_pickle_dumps, METH_VARARGS|METH_KEYWORDS, _pickle_dumps__doc__}, {"dumps", (PyCFunction)_pickle_dumps, METH_FASTCALL, _pickle_dumps__doc__},
static PyObject * static PyObject *
_pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol, _pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol,
int fix_imports); int fix_imports);
static PyObject * static PyObject *
_pickle_dumps(PyObject *module, PyObject *args, PyObject *kwargs) _pickle_dumps(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"obj", "protocol", "fix_imports", NULL}; static const char * const _keywords[] = {"obj", "protocol", "fix_imports", NULL};
...@@ -446,7 +446,7 @@ _pickle_dumps(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -446,7 +446,7 @@ _pickle_dumps(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject *protocol = NULL; PyObject *protocol = NULL;
int fix_imports = 1; int fix_imports = 1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&obj, &protocol, &fix_imports)) { &obj, &protocol, &fix_imports)) {
goto exit; goto exit;
} }
...@@ -486,14 +486,14 @@ PyDoc_STRVAR(_pickle_load__doc__, ...@@ -486,14 +486,14 @@ PyDoc_STRVAR(_pickle_load__doc__,
"string instances as bytes objects."); "string instances as bytes objects.");
#define _PICKLE_LOAD_METHODDEF \ #define _PICKLE_LOAD_METHODDEF \
{"load", (PyCFunction)_pickle_load, METH_VARARGS|METH_KEYWORDS, _pickle_load__doc__}, {"load", (PyCFunction)_pickle_load, METH_FASTCALL, _pickle_load__doc__},
static PyObject * static PyObject *
_pickle_load_impl(PyObject *module, PyObject *file, int fix_imports, _pickle_load_impl(PyObject *module, PyObject *file, int fix_imports,
const char *encoding, const char *errors); const char *encoding, const char *errors);
static PyObject * static PyObject *
_pickle_load(PyObject *module, PyObject *args, PyObject *kwargs) _pickle_load(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", NULL}; static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", NULL};
...@@ -503,7 +503,7 @@ _pickle_load(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -503,7 +503,7 @@ _pickle_load(PyObject *module, PyObject *args, PyObject *kwargs)
const char *encoding = "ASCII"; const char *encoding = "ASCII";
const char *errors = "strict"; const char *errors = "strict";
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&file, &fix_imports, &encoding, &errors)) { &file, &fix_imports, &encoding, &errors)) {
goto exit; goto exit;
} }
...@@ -534,14 +534,14 @@ PyDoc_STRVAR(_pickle_loads__doc__, ...@@ -534,14 +534,14 @@ PyDoc_STRVAR(_pickle_loads__doc__,
"string instances as bytes objects."); "string instances as bytes objects.");
#define _PICKLE_LOADS_METHODDEF \ #define _PICKLE_LOADS_METHODDEF \
{"loads", (PyCFunction)_pickle_loads, METH_VARARGS|METH_KEYWORDS, _pickle_loads__doc__}, {"loads", (PyCFunction)_pickle_loads, METH_FASTCALL, _pickle_loads__doc__},
static PyObject * static PyObject *
_pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports, _pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports,
const char *encoding, const char *errors); const char *encoding, const char *errors);
static PyObject * static PyObject *
_pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs) _pickle_loads(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"data", "fix_imports", "encoding", "errors", NULL}; static const char * const _keywords[] = {"data", "fix_imports", "encoding", "errors", NULL};
...@@ -551,7 +551,7 @@ _pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -551,7 +551,7 @@ _pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs)
const char *encoding = "ASCII"; const char *encoding = "ASCII";
const char *errors = "strict"; const char *errors = "strict";
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &fix_imports, &encoding, &errors)) { &data, &fix_imports, &encoding, &errors)) {
goto exit; goto exit;
} }
...@@ -560,4 +560,4 @@ _pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -560,4 +560,4 @@ _pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=50f9127109673c98 input=a9049054013a1b77]*/ /*[clinic end generated code: output=82be137b3c09cb9f input=a9049054013a1b77]*/
This diff is collapsed.
...@@ -469,14 +469,14 @@ PyDoc_STRVAR(_ssl__SSLContext_load_cert_chain__doc__, ...@@ -469,14 +469,14 @@ PyDoc_STRVAR(_ssl__SSLContext_load_cert_chain__doc__,
"\n"); "\n");
#define _SSL__SSLCONTEXT_LOAD_CERT_CHAIN_METHODDEF \ #define _SSL__SSLCONTEXT_LOAD_CERT_CHAIN_METHODDEF \
{"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_VARARGS|METH_KEYWORDS, _ssl__SSLContext_load_cert_chain__doc__}, {"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_FASTCALL, _ssl__SSLContext_load_cert_chain__doc__},
static PyObject * static PyObject *
_ssl__SSLContext_load_cert_chain_impl(PySSLContext *self, PyObject *certfile, _ssl__SSLContext_load_cert_chain_impl(PySSLContext *self, PyObject *certfile,
PyObject *keyfile, PyObject *password); PyObject *keyfile, PyObject *password);
static PyObject * static PyObject *
_ssl__SSLContext_load_cert_chain(PySSLContext *self, PyObject *args, PyObject *kwargs) _ssl__SSLContext_load_cert_chain(PySSLContext *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"certfile", "keyfile", "password", NULL}; static const char * const _keywords[] = {"certfile", "keyfile", "password", NULL};
...@@ -485,7 +485,7 @@ _ssl__SSLContext_load_cert_chain(PySSLContext *self, PyObject *args, PyObject *k ...@@ -485,7 +485,7 @@ _ssl__SSLContext_load_cert_chain(PySSLContext *self, PyObject *args, PyObject *k
PyObject *keyfile = NULL; PyObject *keyfile = NULL;
PyObject *password = NULL; PyObject *password = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&certfile, &keyfile, &password)) { &certfile, &keyfile, &password)) {
goto exit; goto exit;
} }
...@@ -501,7 +501,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_verify_locations__doc__, ...@@ -501,7 +501,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_verify_locations__doc__,
"\n"); "\n");
#define _SSL__SSLCONTEXT_LOAD_VERIFY_LOCATIONS_METHODDEF \ #define _SSL__SSLCONTEXT_LOAD_VERIFY_LOCATIONS_METHODDEF \
{"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_VARARGS|METH_KEYWORDS, _ssl__SSLContext_load_verify_locations__doc__}, {"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_FASTCALL, _ssl__SSLContext_load_verify_locations__doc__},
static PyObject * static PyObject *
_ssl__SSLContext_load_verify_locations_impl(PySSLContext *self, _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
...@@ -510,7 +510,7 @@ _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self, ...@@ -510,7 +510,7 @@ _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
PyObject *cadata); PyObject *cadata);
static PyObject * static PyObject *
_ssl__SSLContext_load_verify_locations(PySSLContext *self, PyObject *args, PyObject *kwargs) _ssl__SSLContext_load_verify_locations(PySSLContext *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"cafile", "capath", "cadata", NULL}; static const char * const _keywords[] = {"cafile", "capath", "cadata", NULL};
...@@ -519,7 +519,7 @@ _ssl__SSLContext_load_verify_locations(PySSLContext *self, PyObject *args, PyObj ...@@ -519,7 +519,7 @@ _ssl__SSLContext_load_verify_locations(PySSLContext *self, PyObject *args, PyObj
PyObject *capath = NULL; PyObject *capath = NULL;
PyObject *cadata = NULL; PyObject *cadata = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&cafile, &capath, &cadata)) { &cafile, &capath, &cadata)) {
goto exit; goto exit;
} }
...@@ -543,14 +543,14 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_socket__doc__, ...@@ -543,14 +543,14 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_socket__doc__,
"\n"); "\n");
#define _SSL__SSLCONTEXT__WRAP_SOCKET_METHODDEF \ #define _SSL__SSLCONTEXT__WRAP_SOCKET_METHODDEF \
{"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_VARARGS|METH_KEYWORDS, _ssl__SSLContext__wrap_socket__doc__}, {"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_FASTCALL, _ssl__SSLContext__wrap_socket__doc__},
static PyObject * static PyObject *
_ssl__SSLContext__wrap_socket_impl(PySSLContext *self, PyObject *sock, _ssl__SSLContext__wrap_socket_impl(PySSLContext *self, PyObject *sock,
int server_side, PyObject *hostname_obj); int server_side, PyObject *hostname_obj);
static PyObject * static PyObject *
_ssl__SSLContext__wrap_socket(PySSLContext *self, PyObject *args, PyObject *kwargs) _ssl__SSLContext__wrap_socket(PySSLContext *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"sock", "server_side", "server_hostname", NULL}; static const char * const _keywords[] = {"sock", "server_side", "server_hostname", NULL};
...@@ -559,7 +559,7 @@ _ssl__SSLContext__wrap_socket(PySSLContext *self, PyObject *args, PyObject *kwar ...@@ -559,7 +559,7 @@ _ssl__SSLContext__wrap_socket(PySSLContext *self, PyObject *args, PyObject *kwar
int server_side; int server_side;
PyObject *hostname_obj = Py_None; PyObject *hostname_obj = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
PySocketModule.Sock_Type, &sock, &server_side, &hostname_obj)) { PySocketModule.Sock_Type, &sock, &server_side, &hostname_obj)) {
goto exit; goto exit;
} }
...@@ -576,7 +576,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_bio__doc__, ...@@ -576,7 +576,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_bio__doc__,
"\n"); "\n");
#define _SSL__SSLCONTEXT__WRAP_BIO_METHODDEF \ #define _SSL__SSLCONTEXT__WRAP_BIO_METHODDEF \
{"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_VARARGS|METH_KEYWORDS, _ssl__SSLContext__wrap_bio__doc__}, {"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_FASTCALL, _ssl__SSLContext__wrap_bio__doc__},
static PyObject * static PyObject *
_ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming, _ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming,
...@@ -584,7 +584,7 @@ _ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming, ...@@ -584,7 +584,7 @@ _ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming,
PyObject *hostname_obj); PyObject *hostname_obj);
static PyObject * static PyObject *
_ssl__SSLContext__wrap_bio(PySSLContext *self, PyObject *args, PyObject *kwargs) _ssl__SSLContext__wrap_bio(PySSLContext *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"incoming", "outgoing", "server_side", "server_hostname", NULL}; static const char * const _keywords[] = {"incoming", "outgoing", "server_side", "server_hostname", NULL};
...@@ -594,7 +594,7 @@ _ssl__SSLContext__wrap_bio(PySSLContext *self, PyObject *args, PyObject *kwargs) ...@@ -594,7 +594,7 @@ _ssl__SSLContext__wrap_bio(PySSLContext *self, PyObject *args, PyObject *kwargs)
int server_side; int server_side;
PyObject *hostname_obj = Py_None; PyObject *hostname_obj = Py_None;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&PySSLMemoryBIO_Type, &incoming, &PySSLMemoryBIO_Type, &outgoing, &server_side, &hostname_obj)) { &PySSLMemoryBIO_Type, &incoming, &PySSLMemoryBIO_Type, &outgoing, &server_side, &hostname_obj)) {
goto exit; goto exit;
} }
...@@ -700,20 +700,20 @@ PyDoc_STRVAR(_ssl__SSLContext_get_ca_certs__doc__, ...@@ -700,20 +700,20 @@ PyDoc_STRVAR(_ssl__SSLContext_get_ca_certs__doc__,
"been used at least once."); "been used at least once.");
#define _SSL__SSLCONTEXT_GET_CA_CERTS_METHODDEF \ #define _SSL__SSLCONTEXT_GET_CA_CERTS_METHODDEF \
{"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_VARARGS|METH_KEYWORDS, _ssl__SSLContext_get_ca_certs__doc__}, {"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_FASTCALL, _ssl__SSLContext_get_ca_certs__doc__},
static PyObject * static PyObject *
_ssl__SSLContext_get_ca_certs_impl(PySSLContext *self, int binary_form); _ssl__SSLContext_get_ca_certs_impl(PySSLContext *self, int binary_form);
static PyObject * static PyObject *
_ssl__SSLContext_get_ca_certs(PySSLContext *self, PyObject *args, PyObject *kwargs) _ssl__SSLContext_get_ca_certs(PySSLContext *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"binary_form", NULL}; static const char * const _keywords[] = {"binary_form", NULL};
static _PyArg_Parser _parser = {"|p:get_ca_certs", _keywords, 0}; static _PyArg_Parser _parser = {"|p:get_ca_certs", _keywords, 0};
int binary_form = 0; int binary_form = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&binary_form)) { &binary_form)) {
goto exit; goto exit;
} }
...@@ -1011,13 +1011,13 @@ PyDoc_STRVAR(_ssl_txt2obj__doc__, ...@@ -1011,13 +1011,13 @@ PyDoc_STRVAR(_ssl_txt2obj__doc__,
"long name are also matched."); "long name are also matched.");
#define _SSL_TXT2OBJ_METHODDEF \ #define _SSL_TXT2OBJ_METHODDEF \
{"txt2obj", (PyCFunction)_ssl_txt2obj, METH_VARARGS|METH_KEYWORDS, _ssl_txt2obj__doc__}, {"txt2obj", (PyCFunction)_ssl_txt2obj, METH_FASTCALL, _ssl_txt2obj__doc__},
static PyObject * static PyObject *
_ssl_txt2obj_impl(PyObject *module, const char *txt, int name); _ssl_txt2obj_impl(PyObject *module, const char *txt, int name);
static PyObject * static PyObject *
_ssl_txt2obj(PyObject *module, PyObject *args, PyObject *kwargs) _ssl_txt2obj(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"txt", "name", NULL}; static const char * const _keywords[] = {"txt", "name", NULL};
...@@ -1025,7 +1025,7 @@ _ssl_txt2obj(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -1025,7 +1025,7 @@ _ssl_txt2obj(PyObject *module, PyObject *args, PyObject *kwargs)
const char *txt; const char *txt;
int name = 0; int name = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&txt, &name)) { &txt, &name)) {
goto exit; goto exit;
} }
...@@ -1077,20 +1077,20 @@ PyDoc_STRVAR(_ssl_enum_certificates__doc__, ...@@ -1077,20 +1077,20 @@ PyDoc_STRVAR(_ssl_enum_certificates__doc__,
"a set of OIDs or the boolean True."); "a set of OIDs or the boolean True.");
#define _SSL_ENUM_CERTIFICATES_METHODDEF \ #define _SSL_ENUM_CERTIFICATES_METHODDEF \
{"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_VARARGS|METH_KEYWORDS, _ssl_enum_certificates__doc__}, {"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_FASTCALL, _ssl_enum_certificates__doc__},
static PyObject * static PyObject *
_ssl_enum_certificates_impl(PyObject *module, const char *store_name); _ssl_enum_certificates_impl(PyObject *module, const char *store_name);
static PyObject * static PyObject *
_ssl_enum_certificates(PyObject *module, PyObject *args, PyObject *kwargs) _ssl_enum_certificates(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"store_name", NULL}; static const char * const _keywords[] = {"store_name", NULL};
static _PyArg_Parser _parser = {"s:enum_certificates", _keywords, 0}; static _PyArg_Parser _parser = {"s:enum_certificates", _keywords, 0};
const char *store_name; const char *store_name;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&store_name)) { &store_name)) {
goto exit; goto exit;
} }
...@@ -1116,20 +1116,20 @@ PyDoc_STRVAR(_ssl_enum_crls__doc__, ...@@ -1116,20 +1116,20 @@ PyDoc_STRVAR(_ssl_enum_crls__doc__,
"X509_ASN_ENCODING or PKCS_7_ASN_ENCODING."); "X509_ASN_ENCODING or PKCS_7_ASN_ENCODING.");
#define _SSL_ENUM_CRLS_METHODDEF \ #define _SSL_ENUM_CRLS_METHODDEF \
{"enum_crls", (PyCFunction)_ssl_enum_crls, METH_VARARGS|METH_KEYWORDS, _ssl_enum_crls__doc__}, {"enum_crls", (PyCFunction)_ssl_enum_crls, METH_FASTCALL, _ssl_enum_crls__doc__},
static PyObject * static PyObject *
_ssl_enum_crls_impl(PyObject *module, const char *store_name); _ssl_enum_crls_impl(PyObject *module, const char *store_name);
static PyObject * static PyObject *
_ssl_enum_crls(PyObject *module, PyObject *args, PyObject *kwargs) _ssl_enum_crls(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"store_name", NULL}; static const char * const _keywords[] = {"store_name", NULL};
static _PyArg_Parser _parser = {"s:enum_crls", _keywords, 0}; static _PyArg_Parser _parser = {"s:enum_crls", _keywords, 0};
const char *store_name; const char *store_name;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&store_name)) { &store_name)) {
goto exit; goto exit;
} }
...@@ -1168,4 +1168,4 @@ exit: ...@@ -1168,4 +1168,4 @@ exit:
#ifndef _SSL_ENUM_CRLS_METHODDEF #ifndef _SSL_ENUM_CRLS_METHODDEF
#define _SSL_ENUM_CRLS_METHODDEF #define _SSL_ENUM_CRLS_METHODDEF
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */ #endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
/*[clinic end generated code: output=2e7907a7d8f97ccf input=a9049054013a1b77]*/ /*[clinic end generated code: output=a859b21fe68a6115 input=a9049054013a1b77]*/
...@@ -95,14 +95,14 @@ PyDoc_STRVAR(_winapi_ConnectNamedPipe__doc__, ...@@ -95,14 +95,14 @@ PyDoc_STRVAR(_winapi_ConnectNamedPipe__doc__,
"\n"); "\n");
#define _WINAPI_CONNECTNAMEDPIPE_METHODDEF \ #define _WINAPI_CONNECTNAMEDPIPE_METHODDEF \
{"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_VARARGS|METH_KEYWORDS, _winapi_ConnectNamedPipe__doc__}, {"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_FASTCALL, _winapi_ConnectNamedPipe__doc__},
static PyObject * static PyObject *
_winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle, _winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle,
int use_overlapped); int use_overlapped);
static PyObject * static PyObject *
_winapi_ConnectNamedPipe(PyObject *module, PyObject *args, PyObject *kwargs) _winapi_ConnectNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"handle", "overlapped", NULL}; static const char * const _keywords[] = {"handle", "overlapped", NULL};
...@@ -110,7 +110,7 @@ _winapi_ConnectNamedPipe(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -110,7 +110,7 @@ _winapi_ConnectNamedPipe(PyObject *module, PyObject *args, PyObject *kwargs)
HANDLE handle; HANDLE handle;
int use_overlapped = 0; int use_overlapped = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&handle, &use_overlapped)) { &handle, &use_overlapped)) {
goto exit; goto exit;
} }
...@@ -670,14 +670,14 @@ PyDoc_STRVAR(_winapi_ReadFile__doc__, ...@@ -670,14 +670,14 @@ PyDoc_STRVAR(_winapi_ReadFile__doc__,
"\n"); "\n");
#define _WINAPI_READFILE_METHODDEF \ #define _WINAPI_READFILE_METHODDEF \
{"ReadFile", (PyCFunction)_winapi_ReadFile, METH_VARARGS|METH_KEYWORDS, _winapi_ReadFile__doc__}, {"ReadFile", (PyCFunction)_winapi_ReadFile, METH_FASTCALL, _winapi_ReadFile__doc__},
static PyObject * static PyObject *
_winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size, _winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size,
int use_overlapped); int use_overlapped);
static PyObject * static PyObject *
_winapi_ReadFile(PyObject *module, PyObject *args, PyObject *kwargs) _winapi_ReadFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"handle", "size", "overlapped", NULL}; static const char * const _keywords[] = {"handle", "size", "overlapped", NULL};
...@@ -686,7 +686,7 @@ _winapi_ReadFile(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -686,7 +686,7 @@ _winapi_ReadFile(PyObject *module, PyObject *args, PyObject *kwargs)
int size; int size;
int use_overlapped = 0; int use_overlapped = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&handle, &size, &use_overlapped)) { &handle, &size, &use_overlapped)) {
goto exit; goto exit;
} }
...@@ -864,14 +864,14 @@ PyDoc_STRVAR(_winapi_WriteFile__doc__, ...@@ -864,14 +864,14 @@ PyDoc_STRVAR(_winapi_WriteFile__doc__,
"\n"); "\n");
#define _WINAPI_WRITEFILE_METHODDEF \ #define _WINAPI_WRITEFILE_METHODDEF \
{"WriteFile", (PyCFunction)_winapi_WriteFile, METH_VARARGS|METH_KEYWORDS, _winapi_WriteFile__doc__}, {"WriteFile", (PyCFunction)_winapi_WriteFile, METH_FASTCALL, _winapi_WriteFile__doc__},
static PyObject * static PyObject *
_winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer, _winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer,
int use_overlapped); int use_overlapped);
static PyObject * static PyObject *
_winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs) _winapi_WriteFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"handle", "buffer", "overlapped", NULL}; static const char * const _keywords[] = {"handle", "buffer", "overlapped", NULL};
...@@ -880,7 +880,7 @@ _winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -880,7 +880,7 @@ _winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject *buffer; PyObject *buffer;
int use_overlapped = 0; int use_overlapped = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&handle, &buffer, &use_overlapped)) { &handle, &buffer, &use_overlapped)) {
goto exit; goto exit;
} }
...@@ -889,4 +889,4 @@ _winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -889,4 +889,4 @@ _winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=4bfccfb32ab726e8 input=a9049054013a1b77]*/ /*[clinic end generated code: output=46d6382a6662c4a9 input=a9049054013a1b77]*/
...@@ -103,13 +103,13 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__, ...@@ -103,13 +103,13 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__,
"Base64-code line of data."); "Base64-code line of data.");
#define BINASCII_B2A_BASE64_METHODDEF \ #define BINASCII_B2A_BASE64_METHODDEF \
{"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_VARARGS|METH_KEYWORDS, binascii_b2a_base64__doc__}, {"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_FASTCALL, binascii_b2a_base64__doc__},
static PyObject * static PyObject *
binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline); binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline);
static PyObject * static PyObject *
binascii_b2a_base64(PyObject *module, PyObject *args, PyObject *kwargs) binascii_b2a_base64(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"data", "newline", NULL}; static const char * const _keywords[] = {"data", "newline", NULL};
...@@ -117,7 +117,7 @@ binascii_b2a_base64(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -117,7 +117,7 @@ binascii_b2a_base64(PyObject *module, PyObject *args, PyObject *kwargs)
Py_buffer data = {NULL, NULL}; Py_buffer data = {NULL, NULL};
int newline = 1; int newline = 1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &newline)) { &data, &newline)) {
goto exit; goto exit;
} }
...@@ -480,13 +480,13 @@ PyDoc_STRVAR(binascii_a2b_qp__doc__, ...@@ -480,13 +480,13 @@ PyDoc_STRVAR(binascii_a2b_qp__doc__,
"Decode a string of qp-encoded data."); "Decode a string of qp-encoded data.");
#define BINASCII_A2B_QP_METHODDEF \ #define BINASCII_A2B_QP_METHODDEF \
{"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_VARARGS|METH_KEYWORDS, binascii_a2b_qp__doc__}, {"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_FASTCALL, binascii_a2b_qp__doc__},
static PyObject * static PyObject *
binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header); binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header);
static PyObject * static PyObject *
binascii_a2b_qp(PyObject *module, PyObject *args, PyObject *kwargs) binascii_a2b_qp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"data", "header", NULL}; static const char * const _keywords[] = {"data", "header", NULL};
...@@ -494,7 +494,7 @@ binascii_a2b_qp(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -494,7 +494,7 @@ binascii_a2b_qp(PyObject *module, PyObject *args, PyObject *kwargs)
Py_buffer data = {NULL, NULL}; Py_buffer data = {NULL, NULL};
int header = 0; int header = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
ascii_buffer_converter, &data, &header)) { ascii_buffer_converter, &data, &header)) {
goto exit; goto exit;
} }
...@@ -519,14 +519,14 @@ PyDoc_STRVAR(binascii_b2a_qp__doc__, ...@@ -519,14 +519,14 @@ PyDoc_STRVAR(binascii_b2a_qp__doc__,
"are both encoded. When quotetabs is set, space and tabs are encoded."); "are both encoded. When quotetabs is set, space and tabs are encoded.");
#define BINASCII_B2A_QP_METHODDEF \ #define BINASCII_B2A_QP_METHODDEF \
{"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_VARARGS|METH_KEYWORDS, binascii_b2a_qp__doc__}, {"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_FASTCALL, binascii_b2a_qp__doc__},
static PyObject * static PyObject *
binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
int istext, int header); int istext, int header);
static PyObject * static PyObject *
binascii_b2a_qp(PyObject *module, PyObject *args, PyObject *kwargs) binascii_b2a_qp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"data", "quotetabs", "istext", "header", NULL}; static const char * const _keywords[] = {"data", "quotetabs", "istext", "header", NULL};
...@@ -536,7 +536,7 @@ binascii_b2a_qp(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -536,7 +536,7 @@ binascii_b2a_qp(PyObject *module, PyObject *args, PyObject *kwargs)
int istext = 1; int istext = 1;
int header = 0; int header = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &quotetabs, &istext, &header)) { &data, &quotetabs, &istext, &header)) {
goto exit; goto exit;
} }
...@@ -550,4 +550,4 @@ exit: ...@@ -550,4 +550,4 @@ exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=12611b05d8bf4a9c input=a9049054013a1b77]*/ /*[clinic end generated code: output=1f8d6e48f75f6d1e input=a9049054013a1b77]*/
...@@ -851,14 +851,14 @@ PyDoc_STRVAR(cmath_isclose__doc__, ...@@ -851,14 +851,14 @@ PyDoc_STRVAR(cmath_isclose__doc__,
"not close to anything, even itself. inf and -inf are only close to themselves."); "not close to anything, even itself. inf and -inf are only close to themselves.");
#define CMATH_ISCLOSE_METHODDEF \ #define CMATH_ISCLOSE_METHODDEF \
{"isclose", (PyCFunction)cmath_isclose, METH_VARARGS|METH_KEYWORDS, cmath_isclose__doc__}, {"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL, cmath_isclose__doc__},
static int static int
cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b, cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b,
double rel_tol, double abs_tol); double rel_tol, double abs_tol);
static PyObject * static PyObject *
cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs) cmath_isclose(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"a", "b", "rel_tol", "abs_tol", NULL}; static const char * const _keywords[] = {"a", "b", "rel_tol", "abs_tol", NULL};
...@@ -869,7 +869,7 @@ cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -869,7 +869,7 @@ cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs)
double abs_tol = 0.0; double abs_tol = 0.0;
int _return_value; int _return_value;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&a, &b, &rel_tol, &abs_tol)) { &a, &b, &rel_tol, &abs_tol)) {
goto exit; goto exit;
} }
...@@ -882,4 +882,4 @@ cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -882,4 +882,4 @@ cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=aa2e77ca9fc26928 input=a9049054013a1b77]*/ /*[clinic end generated code: output=978f59702b41655f input=a9049054013a1b77]*/
...@@ -11,20 +11,20 @@ PyDoc_STRVAR(grp_getgrgid__doc__, ...@@ -11,20 +11,20 @@ PyDoc_STRVAR(grp_getgrgid__doc__,
"If id is not valid, raise KeyError."); "If id is not valid, raise KeyError.");
#define GRP_GETGRGID_METHODDEF \ #define GRP_GETGRGID_METHODDEF \
{"getgrgid", (PyCFunction)grp_getgrgid, METH_VARARGS|METH_KEYWORDS, grp_getgrgid__doc__}, {"getgrgid", (PyCFunction)grp_getgrgid, METH_FASTCALL, grp_getgrgid__doc__},
static PyObject * static PyObject *
grp_getgrgid_impl(PyObject *module, PyObject *id); grp_getgrgid_impl(PyObject *module, PyObject *id);
static PyObject * static PyObject *
grp_getgrgid(PyObject *module, PyObject *args, PyObject *kwargs) grp_getgrgid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"id", NULL}; static const char * const _keywords[] = {"id", NULL};
static _PyArg_Parser _parser = {"O:getgrgid", _keywords, 0}; static _PyArg_Parser _parser = {"O:getgrgid", _keywords, 0};
PyObject *id; PyObject *id;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&id)) { &id)) {
goto exit; goto exit;
} }
...@@ -43,20 +43,20 @@ PyDoc_STRVAR(grp_getgrnam__doc__, ...@@ -43,20 +43,20 @@ PyDoc_STRVAR(grp_getgrnam__doc__,
"If name is not valid, raise KeyError."); "If name is not valid, raise KeyError.");
#define GRP_GETGRNAM_METHODDEF \ #define GRP_GETGRNAM_METHODDEF \
{"getgrnam", (PyCFunction)grp_getgrnam, METH_VARARGS|METH_KEYWORDS, grp_getgrnam__doc__}, {"getgrnam", (PyCFunction)grp_getgrnam, METH_FASTCALL, grp_getgrnam__doc__},
static PyObject * static PyObject *
grp_getgrnam_impl(PyObject *module, PyObject *name); grp_getgrnam_impl(PyObject *module, PyObject *name);
static PyObject * static PyObject *
grp_getgrnam(PyObject *module, PyObject *args, PyObject *kwargs) grp_getgrnam(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"name", NULL}; static const char * const _keywords[] = {"name", NULL};
static _PyArg_Parser _parser = {"U:getgrnam", _keywords, 0}; static _PyArg_Parser _parser = {"U:getgrnam", _keywords, 0};
PyObject *name; PyObject *name;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&name)) { &name)) {
goto exit; goto exit;
} }
...@@ -86,4 +86,4 @@ grp_getgrall(PyObject *module, PyObject *Py_UNUSED(ignored)) ...@@ -86,4 +86,4 @@ grp_getgrall(PyObject *module, PyObject *Py_UNUSED(ignored))
{ {
return grp_getgrall_impl(module); return grp_getgrall_impl(module);
} }
/*[clinic end generated code: output=c06081097b7fffe7 input=a9049054013a1b77]*/ /*[clinic end generated code: output=d6417ae0a7298e0e input=a9049054013a1b77]*/
...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_md5_md5__doc__, ...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_md5_md5__doc__,
"Return a new MD5 hash object; optionally initialized with a string."); "Return a new MD5 hash object; optionally initialized with a string.");
#define _MD5_MD5_METHODDEF \ #define _MD5_MD5_METHODDEF \
{"md5", (PyCFunction)_md5_md5, METH_VARARGS|METH_KEYWORDS, _md5_md5__doc__}, {"md5", (PyCFunction)_md5_md5, METH_FASTCALL, _md5_md5__doc__},
static PyObject * static PyObject *
_md5_md5_impl(PyObject *module, PyObject *string); _md5_md5_impl(PyObject *module, PyObject *string);
static PyObject * static PyObject *
_md5_md5(PyObject *module, PyObject *args, PyObject *kwargs) _md5_md5(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"string", NULL}; static const char * const _keywords[] = {"string", NULL};
static _PyArg_Parser _parser = {"|O:md5", _keywords, 0}; static _PyArg_Parser _parser = {"|O:md5", _keywords, 0};
PyObject *string = NULL; PyObject *string = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&string)) { &string)) {
goto exit; goto exit;
} }
...@@ -94,4 +94,4 @@ _md5_md5(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -94,4 +94,4 @@ _md5_md5(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=f86fc2f3f21831e2 input=a9049054013a1b77]*/ /*[clinic end generated code: output=54cd50db050f2589 input=a9049054013a1b77]*/
This diff is collapsed.
...@@ -233,14 +233,14 @@ PyDoc_STRVAR(pyexpat_ParserCreate__doc__, ...@@ -233,14 +233,14 @@ PyDoc_STRVAR(pyexpat_ParserCreate__doc__,
"Return a new XML parser object."); "Return a new XML parser object.");
#define PYEXPAT_PARSERCREATE_METHODDEF \ #define PYEXPAT_PARSERCREATE_METHODDEF \
{"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_VARARGS|METH_KEYWORDS, pyexpat_ParserCreate__doc__}, {"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_FASTCALL, pyexpat_ParserCreate__doc__},
static PyObject * static PyObject *
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding, pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
const char *namespace_separator, PyObject *intern); const char *namespace_separator, PyObject *intern);
static PyObject * static PyObject *
pyexpat_ParserCreate(PyObject *module, PyObject *args, PyObject *kwargs) pyexpat_ParserCreate(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"encoding", "namespace_separator", "intern", NULL}; static const char * const _keywords[] = {"encoding", "namespace_separator", "intern", NULL};
...@@ -249,7 +249,7 @@ pyexpat_ParserCreate(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -249,7 +249,7 @@ pyexpat_ParserCreate(PyObject *module, PyObject *args, PyObject *kwargs)
const char *namespace_separator = NULL; const char *namespace_separator = NULL;
PyObject *intern = NULL; PyObject *intern = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&encoding, &namespace_separator, &intern)) { &encoding, &namespace_separator, &intern)) {
goto exit; goto exit;
} }
...@@ -289,4 +289,4 @@ exit: ...@@ -289,4 +289,4 @@ exit:
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
/*[clinic end generated code: output=93cfe662f2bc48e5 input=a9049054013a1b77]*/ /*[clinic end generated code: output=e889f7c6af6cc42f input=a9049054013a1b77]*/
...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha1_sha1__doc__, ...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha1_sha1__doc__,
"Return a new SHA1 hash object; optionally initialized with a string."); "Return a new SHA1 hash object; optionally initialized with a string.");
#define _SHA1_SHA1_METHODDEF \ #define _SHA1_SHA1_METHODDEF \
{"sha1", (PyCFunction)_sha1_sha1, METH_VARARGS|METH_KEYWORDS, _sha1_sha1__doc__}, {"sha1", (PyCFunction)_sha1_sha1, METH_FASTCALL, _sha1_sha1__doc__},
static PyObject * static PyObject *
_sha1_sha1_impl(PyObject *module, PyObject *string); _sha1_sha1_impl(PyObject *module, PyObject *string);
static PyObject * static PyObject *
_sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs) _sha1_sha1(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"string", NULL}; static const char * const _keywords[] = {"string", NULL};
static _PyArg_Parser _parser = {"|O:sha1", _keywords, 0}; static _PyArg_Parser _parser = {"|O:sha1", _keywords, 0};
PyObject *string = NULL; PyObject *string = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&string)) { &string)) {
goto exit; goto exit;
} }
...@@ -94,4 +94,4 @@ _sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -94,4 +94,4 @@ _sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=549a5d08c248337d input=a9049054013a1b77]*/ /*[clinic end generated code: output=1430450f3f806895 input=a9049054013a1b77]*/
...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha256_sha256__doc__, ...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha256_sha256__doc__,
"Return a new SHA-256 hash object; optionally initialized with a string."); "Return a new SHA-256 hash object; optionally initialized with a string.");
#define _SHA256_SHA256_METHODDEF \ #define _SHA256_SHA256_METHODDEF \
{"sha256", (PyCFunction)_sha256_sha256, METH_VARARGS|METH_KEYWORDS, _sha256_sha256__doc__}, {"sha256", (PyCFunction)_sha256_sha256, METH_FASTCALL, _sha256_sha256__doc__},
static PyObject * static PyObject *
_sha256_sha256_impl(PyObject *module, PyObject *string); _sha256_sha256_impl(PyObject *module, PyObject *string);
static PyObject * static PyObject *
_sha256_sha256(PyObject *module, PyObject *args, PyObject *kwargs) _sha256_sha256(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"string", NULL}; static const char * const _keywords[] = {"string", NULL};
static _PyArg_Parser _parser = {"|O:sha256", _keywords, 0}; static _PyArg_Parser _parser = {"|O:sha256", _keywords, 0};
PyObject *string = NULL; PyObject *string = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&string)) { &string)) {
goto exit; goto exit;
} }
...@@ -102,20 +102,20 @@ PyDoc_STRVAR(_sha256_sha224__doc__, ...@@ -102,20 +102,20 @@ PyDoc_STRVAR(_sha256_sha224__doc__,
"Return a new SHA-224 hash object; optionally initialized with a string."); "Return a new SHA-224 hash object; optionally initialized with a string.");
#define _SHA256_SHA224_METHODDEF \ #define _SHA256_SHA224_METHODDEF \
{"sha224", (PyCFunction)_sha256_sha224, METH_VARARGS|METH_KEYWORDS, _sha256_sha224__doc__}, {"sha224", (PyCFunction)_sha256_sha224, METH_FASTCALL, _sha256_sha224__doc__},
static PyObject * static PyObject *
_sha256_sha224_impl(PyObject *module, PyObject *string); _sha256_sha224_impl(PyObject *module, PyObject *string);
static PyObject * static PyObject *
_sha256_sha224(PyObject *module, PyObject *args, PyObject *kwargs) _sha256_sha224(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"string", NULL}; static const char * const _keywords[] = {"string", NULL};
static _PyArg_Parser _parser = {"|O:sha224", _keywords, 0}; static _PyArg_Parser _parser = {"|O:sha224", _keywords, 0};
PyObject *string = NULL; PyObject *string = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&string)) { &string)) {
goto exit; goto exit;
} }
...@@ -124,4 +124,4 @@ _sha256_sha224(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -124,4 +124,4 @@ _sha256_sha224(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=a1296ba6d0780051 input=a9049054013a1b77]*/ /*[clinic end generated code: output=19439d70db7ead5c input=a9049054013a1b77]*/
...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha512_sha512__doc__, ...@@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha512_sha512__doc__,
"Return a new SHA-512 hash object; optionally initialized with a string."); "Return a new SHA-512 hash object; optionally initialized with a string.");
#define _SHA512_SHA512_METHODDEF \ #define _SHA512_SHA512_METHODDEF \
{"sha512", (PyCFunction)_sha512_sha512, METH_VARARGS|METH_KEYWORDS, _sha512_sha512__doc__}, {"sha512", (PyCFunction)_sha512_sha512, METH_FASTCALL, _sha512_sha512__doc__},
static PyObject * static PyObject *
_sha512_sha512_impl(PyObject *module, PyObject *string); _sha512_sha512_impl(PyObject *module, PyObject *string);
static PyObject * static PyObject *
_sha512_sha512(PyObject *module, PyObject *args, PyObject *kwargs) _sha512_sha512(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"string", NULL}; static const char * const _keywords[] = {"string", NULL};
static _PyArg_Parser _parser = {"|O:sha512", _keywords, 0}; static _PyArg_Parser _parser = {"|O:sha512", _keywords, 0};
PyObject *string = NULL; PyObject *string = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&string)) { &string)) {
goto exit; goto exit;
} }
...@@ -102,20 +102,20 @@ PyDoc_STRVAR(_sha512_sha384__doc__, ...@@ -102,20 +102,20 @@ PyDoc_STRVAR(_sha512_sha384__doc__,
"Return a new SHA-384 hash object; optionally initialized with a string."); "Return a new SHA-384 hash object; optionally initialized with a string.");
#define _SHA512_SHA384_METHODDEF \ #define _SHA512_SHA384_METHODDEF \
{"sha384", (PyCFunction)_sha512_sha384, METH_VARARGS|METH_KEYWORDS, _sha512_sha384__doc__}, {"sha384", (PyCFunction)_sha512_sha384, METH_FASTCALL, _sha512_sha384__doc__},
static PyObject * static PyObject *
_sha512_sha384_impl(PyObject *module, PyObject *string); _sha512_sha384_impl(PyObject *module, PyObject *string);
static PyObject * static PyObject *
_sha512_sha384(PyObject *module, PyObject *args, PyObject *kwargs) _sha512_sha384(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"string", NULL}; static const char * const _keywords[] = {"string", NULL};
static _PyArg_Parser _parser = {"|O:sha384", _keywords, 0}; static _PyArg_Parser _parser = {"|O:sha384", _keywords, 0};
PyObject *string = NULL; PyObject *string = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&string)) { &string)) {
goto exit; goto exit;
} }
...@@ -124,4 +124,4 @@ _sha512_sha384(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -124,4 +124,4 @@ _sha512_sha384(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=8f7f6603a9c4e910 input=a9049054013a1b77]*/ /*[clinic end generated code: output=18f15598c3487045 input=a9049054013a1b77]*/
...@@ -14,13 +14,13 @@ PyDoc_STRVAR(zlib_compress__doc__, ...@@ -14,13 +14,13 @@ PyDoc_STRVAR(zlib_compress__doc__,
" Compression level, in 0-9 or -1."); " Compression level, in 0-9 or -1.");
#define ZLIB_COMPRESS_METHODDEF \ #define ZLIB_COMPRESS_METHODDEF \
{"compress", (PyCFunction)zlib_compress, METH_VARARGS|METH_KEYWORDS, zlib_compress__doc__}, {"compress", (PyCFunction)zlib_compress, METH_FASTCALL, zlib_compress__doc__},
static PyObject * static PyObject *
zlib_compress_impl(PyObject *module, Py_buffer *data, int level); zlib_compress_impl(PyObject *module, Py_buffer *data, int level);
static PyObject * static PyObject *
zlib_compress(PyObject *module, PyObject *args, PyObject *kwargs) zlib_compress(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "level", NULL}; static const char * const _keywords[] = {"", "level", NULL};
...@@ -28,7 +28,7 @@ zlib_compress(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -28,7 +28,7 @@ zlib_compress(PyObject *module, PyObject *args, PyObject *kwargs)
Py_buffer data = {NULL, NULL}; Py_buffer data = {NULL, NULL};
int level = Z_DEFAULT_COMPRESSION; int level = Z_DEFAULT_COMPRESSION;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &level)) { &data, &level)) {
goto exit; goto exit;
} }
...@@ -57,14 +57,14 @@ PyDoc_STRVAR(zlib_decompress__doc__, ...@@ -57,14 +57,14 @@ PyDoc_STRVAR(zlib_decompress__doc__,
" The initial output buffer size."); " The initial output buffer size.");
#define ZLIB_DECOMPRESS_METHODDEF \ #define ZLIB_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)zlib_decompress, METH_VARARGS|METH_KEYWORDS, zlib_decompress__doc__}, {"decompress", (PyCFunction)zlib_decompress, METH_FASTCALL, zlib_decompress__doc__},
static PyObject * static PyObject *
zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits, zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
Py_ssize_t bufsize); Py_ssize_t bufsize);
static PyObject * static PyObject *
zlib_decompress(PyObject *module, PyObject *args, PyObject *kwargs) zlib_decompress(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "wbits", "bufsize", NULL}; static const char * const _keywords[] = {"", "wbits", "bufsize", NULL};
...@@ -73,7 +73,7 @@ zlib_decompress(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -73,7 +73,7 @@ zlib_decompress(PyObject *module, PyObject *args, PyObject *kwargs)
int wbits = MAX_WBITS; int wbits = MAX_WBITS;
Py_ssize_t bufsize = DEF_BUF_SIZE; Py_ssize_t bufsize = DEF_BUF_SIZE;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, &wbits, ssize_t_converter, &bufsize)) { &data, &wbits, ssize_t_converter, &bufsize)) {
goto exit; goto exit;
} }
...@@ -119,14 +119,14 @@ PyDoc_STRVAR(zlib_compressobj__doc__, ...@@ -119,14 +119,14 @@ PyDoc_STRVAR(zlib_compressobj__doc__,
" containing subsequences that are likely to occur in the input data."); " containing subsequences that are likely to occur in the input data.");
#define ZLIB_COMPRESSOBJ_METHODDEF \ #define ZLIB_COMPRESSOBJ_METHODDEF \
{"compressobj", (PyCFunction)zlib_compressobj, METH_VARARGS|METH_KEYWORDS, zlib_compressobj__doc__}, {"compressobj", (PyCFunction)zlib_compressobj, METH_FASTCALL, zlib_compressobj__doc__},
static PyObject * static PyObject *
zlib_compressobj_impl(PyObject *module, int level, int method, int wbits, zlib_compressobj_impl(PyObject *module, int level, int method, int wbits,
int memLevel, int strategy, Py_buffer *zdict); int memLevel, int strategy, Py_buffer *zdict);
static PyObject * static PyObject *
zlib_compressobj(PyObject *module, PyObject *args, PyObject *kwargs) zlib_compressobj(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"level", "method", "wbits", "memLevel", "strategy", "zdict", NULL}; static const char * const _keywords[] = {"level", "method", "wbits", "memLevel", "strategy", "zdict", NULL};
...@@ -138,7 +138,7 @@ zlib_compressobj(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -138,7 +138,7 @@ zlib_compressobj(PyObject *module, PyObject *args, PyObject *kwargs)
int strategy = Z_DEFAULT_STRATEGY; int strategy = Z_DEFAULT_STRATEGY;
Py_buffer zdict = {NULL, NULL}; Py_buffer zdict = {NULL, NULL};
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&level, &method, &wbits, &memLevel, &strategy, &zdict)) { &level, &method, &wbits, &memLevel, &strategy, &zdict)) {
goto exit; goto exit;
} }
...@@ -166,13 +166,13 @@ PyDoc_STRVAR(zlib_decompressobj__doc__, ...@@ -166,13 +166,13 @@ PyDoc_STRVAR(zlib_decompressobj__doc__,
" dictionary as used by the compressor that produced the input data."); " dictionary as used by the compressor that produced the input data.");
#define ZLIB_DECOMPRESSOBJ_METHODDEF \ #define ZLIB_DECOMPRESSOBJ_METHODDEF \
{"decompressobj", (PyCFunction)zlib_decompressobj, METH_VARARGS|METH_KEYWORDS, zlib_decompressobj__doc__}, {"decompressobj", (PyCFunction)zlib_decompressobj, METH_FASTCALL, zlib_decompressobj__doc__},
static PyObject * static PyObject *
zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict); zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict);
static PyObject * static PyObject *
zlib_decompressobj(PyObject *module, PyObject *args, PyObject *kwargs) zlib_decompressobj(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"wbits", "zdict", NULL}; static const char * const _keywords[] = {"wbits", "zdict", NULL};
...@@ -180,7 +180,7 @@ zlib_decompressobj(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -180,7 +180,7 @@ zlib_decompressobj(PyObject *module, PyObject *args, PyObject *kwargs)
int wbits = MAX_WBITS; int wbits = MAX_WBITS;
PyObject *zdict = NULL; PyObject *zdict = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&wbits, &zdict)) { &wbits, &zdict)) {
goto exit; goto exit;
} }
...@@ -247,14 +247,14 @@ PyDoc_STRVAR(zlib_Decompress_decompress__doc__, ...@@ -247,14 +247,14 @@ PyDoc_STRVAR(zlib_Decompress_decompress__doc__,
"Call the flush() method to clear these buffers."); "Call the flush() method to clear these buffers.");
#define ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF \ #define ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF \
{"decompress", (PyCFunction)zlib_Decompress_decompress, METH_VARARGS|METH_KEYWORDS, zlib_Decompress_decompress__doc__}, {"decompress", (PyCFunction)zlib_Decompress_decompress, METH_FASTCALL, zlib_Decompress_decompress__doc__},
static PyObject * static PyObject *
zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data, zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data,
Py_ssize_t max_length); Py_ssize_t max_length);
static PyObject * static PyObject *
zlib_Decompress_decompress(compobject *self, PyObject *args, PyObject *kwargs) zlib_Decompress_decompress(compobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "max_length", NULL}; static const char * const _keywords[] = {"", "max_length", NULL};
...@@ -262,7 +262,7 @@ zlib_Decompress_decompress(compobject *self, PyObject *args, PyObject *kwargs) ...@@ -262,7 +262,7 @@ zlib_Decompress_decompress(compobject *self, PyObject *args, PyObject *kwargs)
Py_buffer data = {NULL, NULL}; Py_buffer data = {NULL, NULL};
Py_ssize_t max_length = 0; Py_ssize_t max_length = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&data, ssize_t_converter, &max_length)) { &data, ssize_t_converter, &max_length)) {
goto exit; goto exit;
} }
...@@ -467,4 +467,4 @@ exit: ...@@ -467,4 +467,4 @@ exit:
#ifndef ZLIB_COMPRESS_COPY_METHODDEF #ifndef ZLIB_COMPRESS_COPY_METHODDEF
#define ZLIB_COMPRESS_COPY_METHODDEF #define ZLIB_COMPRESS_COPY_METHODDEF
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */ #endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
/*[clinic end generated code: output=48911ef429b65903 input=a9049054013a1b77]*/ /*[clinic end generated code: output=3a4e2bfe750423a3 input=a9049054013a1b77]*/
...@@ -51,14 +51,14 @@ PyDoc_STRVAR(bytearray_translate__doc__, ...@@ -51,14 +51,14 @@ PyDoc_STRVAR(bytearray_translate__doc__,
"The remaining characters are mapped through the given translation table."); "The remaining characters are mapped through the given translation table.");
#define BYTEARRAY_TRANSLATE_METHODDEF \ #define BYTEARRAY_TRANSLATE_METHODDEF \
{"translate", (PyCFunction)bytearray_translate, METH_VARARGS|METH_KEYWORDS, bytearray_translate__doc__}, {"translate", (PyCFunction)bytearray_translate, METH_FASTCALL, bytearray_translate__doc__},
static PyObject * static PyObject *
bytearray_translate_impl(PyByteArrayObject *self, PyObject *table, bytearray_translate_impl(PyByteArrayObject *self, PyObject *table,
PyObject *deletechars); PyObject *deletechars);
static PyObject * static PyObject *
bytearray_translate(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) bytearray_translate(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "delete", NULL}; static const char * const _keywords[] = {"", "delete", NULL};
...@@ -66,7 +66,7 @@ bytearray_translate(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) ...@@ -66,7 +66,7 @@ bytearray_translate(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
PyObject *table; PyObject *table;
PyObject *deletechars = NULL; PyObject *deletechars = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&table, &deletechars)) { &table, &deletechars)) {
goto exit; goto exit;
} }
...@@ -181,14 +181,14 @@ PyDoc_STRVAR(bytearray_split__doc__, ...@@ -181,14 +181,14 @@ PyDoc_STRVAR(bytearray_split__doc__,
" -1 (the default value) means no limit."); " -1 (the default value) means no limit.");
#define BYTEARRAY_SPLIT_METHODDEF \ #define BYTEARRAY_SPLIT_METHODDEF \
{"split", (PyCFunction)bytearray_split, METH_VARARGS|METH_KEYWORDS, bytearray_split__doc__}, {"split", (PyCFunction)bytearray_split, METH_FASTCALL, bytearray_split__doc__},
static PyObject * static PyObject *
bytearray_split_impl(PyByteArrayObject *self, PyObject *sep, bytearray_split_impl(PyByteArrayObject *self, PyObject *sep,
Py_ssize_t maxsplit); Py_ssize_t maxsplit);
static PyObject * static PyObject *
bytearray_split(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) bytearray_split(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"sep", "maxsplit", NULL}; static const char * const _keywords[] = {"sep", "maxsplit", NULL};
...@@ -196,7 +196,7 @@ bytearray_split(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) ...@@ -196,7 +196,7 @@ bytearray_split(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
PyObject *sep = Py_None; PyObject *sep = Py_None;
Py_ssize_t maxsplit = -1; Py_ssize_t maxsplit = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&sep, &maxsplit)) { &sep, &maxsplit)) {
goto exit; goto exit;
} }
...@@ -255,14 +255,14 @@ PyDoc_STRVAR(bytearray_rsplit__doc__, ...@@ -255,14 +255,14 @@ PyDoc_STRVAR(bytearray_rsplit__doc__,
"Splitting is done starting at the end of the bytearray and working to the front."); "Splitting is done starting at the end of the bytearray and working to the front.");
#define BYTEARRAY_RSPLIT_METHODDEF \ #define BYTEARRAY_RSPLIT_METHODDEF \
{"rsplit", (PyCFunction)bytearray_rsplit, METH_VARARGS|METH_KEYWORDS, bytearray_rsplit__doc__}, {"rsplit", (PyCFunction)bytearray_rsplit, METH_FASTCALL, bytearray_rsplit__doc__},
static PyObject * static PyObject *
bytearray_rsplit_impl(PyByteArrayObject *self, PyObject *sep, bytearray_rsplit_impl(PyByteArrayObject *self, PyObject *sep,
Py_ssize_t maxsplit); Py_ssize_t maxsplit);
static PyObject * static PyObject *
bytearray_rsplit(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) bytearray_rsplit(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"sep", "maxsplit", NULL}; static const char * const _keywords[] = {"sep", "maxsplit", NULL};
...@@ -270,7 +270,7 @@ bytearray_rsplit(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) ...@@ -270,7 +270,7 @@ bytearray_rsplit(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
PyObject *sep = Py_None; PyObject *sep = Py_None;
Py_ssize_t maxsplit = -1; Py_ssize_t maxsplit = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&sep, &maxsplit)) { &sep, &maxsplit)) {
goto exit; goto exit;
} }
...@@ -547,14 +547,14 @@ PyDoc_STRVAR(bytearray_decode__doc__, ...@@ -547,14 +547,14 @@ PyDoc_STRVAR(bytearray_decode__doc__,
" can handle UnicodeDecodeErrors."); " can handle UnicodeDecodeErrors.");
#define BYTEARRAY_DECODE_METHODDEF \ #define BYTEARRAY_DECODE_METHODDEF \
{"decode", (PyCFunction)bytearray_decode, METH_VARARGS|METH_KEYWORDS, bytearray_decode__doc__}, {"decode", (PyCFunction)bytearray_decode, METH_FASTCALL, bytearray_decode__doc__},
static PyObject * static PyObject *
bytearray_decode_impl(PyByteArrayObject *self, const char *encoding, bytearray_decode_impl(PyByteArrayObject *self, const char *encoding,
const char *errors); const char *errors);
static PyObject * static PyObject *
bytearray_decode(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) bytearray_decode(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"encoding", "errors", NULL}; static const char * const _keywords[] = {"encoding", "errors", NULL};
...@@ -562,7 +562,7 @@ bytearray_decode(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) ...@@ -562,7 +562,7 @@ bytearray_decode(PyByteArrayObject *self, PyObject *args, PyObject *kwargs)
const char *encoding = NULL; const char *encoding = NULL;
const char *errors = NULL; const char *errors = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&encoding, &errors)) { &encoding, &errors)) {
goto exit; goto exit;
} }
...@@ -595,20 +595,20 @@ PyDoc_STRVAR(bytearray_splitlines__doc__, ...@@ -595,20 +595,20 @@ PyDoc_STRVAR(bytearray_splitlines__doc__,
"true."); "true.");
#define BYTEARRAY_SPLITLINES_METHODDEF \ #define BYTEARRAY_SPLITLINES_METHODDEF \
{"splitlines", (PyCFunction)bytearray_splitlines, METH_VARARGS|METH_KEYWORDS, bytearray_splitlines__doc__}, {"splitlines", (PyCFunction)bytearray_splitlines, METH_FASTCALL, bytearray_splitlines__doc__},
static PyObject * static PyObject *
bytearray_splitlines_impl(PyByteArrayObject *self, int keepends); bytearray_splitlines_impl(PyByteArrayObject *self, int keepends);
static PyObject * static PyObject *
bytearray_splitlines(PyByteArrayObject *self, PyObject *args, PyObject *kwargs) bytearray_splitlines(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"keepends", NULL}; static const char * const _keywords[] = {"keepends", NULL};
static _PyArg_Parser _parser = {"|i:splitlines", _keywords, 0}; static _PyArg_Parser _parser = {"|i:splitlines", _keywords, 0};
int keepends = 0; int keepends = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&keepends)) { &keepends)) {
goto exit; goto exit;
} }
...@@ -711,4 +711,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored)) ...@@ -711,4 +711,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored))
{ {
return bytearray_sizeof_impl(self); return bytearray_sizeof_impl(self);
} }
/*[clinic end generated code: output=59a0c86b29ff06d1 input=a9049054013a1b77]*/ /*[clinic end generated code: output=225342a680391b9c input=a9049054013a1b77]*/
...@@ -17,13 +17,13 @@ PyDoc_STRVAR(bytes_split__doc__, ...@@ -17,13 +17,13 @@ PyDoc_STRVAR(bytes_split__doc__,
" -1 (the default value) means no limit."); " -1 (the default value) means no limit.");
#define BYTES_SPLIT_METHODDEF \ #define BYTES_SPLIT_METHODDEF \
{"split", (PyCFunction)bytes_split, METH_VARARGS|METH_KEYWORDS, bytes_split__doc__}, {"split", (PyCFunction)bytes_split, METH_FASTCALL, bytes_split__doc__},
static PyObject * static PyObject *
bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
static PyObject * static PyObject *
bytes_split(PyBytesObject *self, PyObject *args, PyObject *kwargs) bytes_split(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"sep", "maxsplit", NULL}; static const char * const _keywords[] = {"sep", "maxsplit", NULL};
...@@ -31,7 +31,7 @@ bytes_split(PyBytesObject *self, PyObject *args, PyObject *kwargs) ...@@ -31,7 +31,7 @@ bytes_split(PyBytesObject *self, PyObject *args, PyObject *kwargs)
PyObject *sep = Py_None; PyObject *sep = Py_None;
Py_ssize_t maxsplit = -1; Py_ssize_t maxsplit = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&sep, &maxsplit)) { &sep, &maxsplit)) {
goto exit; goto exit;
} }
...@@ -136,13 +136,13 @@ PyDoc_STRVAR(bytes_rsplit__doc__, ...@@ -136,13 +136,13 @@ PyDoc_STRVAR(bytes_rsplit__doc__,
"Splitting is done starting at the end of the bytes and working to the front."); "Splitting is done starting at the end of the bytes and working to the front.");
#define BYTES_RSPLIT_METHODDEF \ #define BYTES_RSPLIT_METHODDEF \
{"rsplit", (PyCFunction)bytes_rsplit, METH_VARARGS|METH_KEYWORDS, bytes_rsplit__doc__}, {"rsplit", (PyCFunction)bytes_rsplit, METH_FASTCALL, bytes_rsplit__doc__},
static PyObject * static PyObject *
bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
static PyObject * static PyObject *
bytes_rsplit(PyBytesObject *self, PyObject *args, PyObject *kwargs) bytes_rsplit(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"sep", "maxsplit", NULL}; static const char * const _keywords[] = {"sep", "maxsplit", NULL};
...@@ -150,7 +150,7 @@ bytes_rsplit(PyBytesObject *self, PyObject *args, PyObject *kwargs) ...@@ -150,7 +150,7 @@ bytes_rsplit(PyBytesObject *self, PyObject *args, PyObject *kwargs)
PyObject *sep = Py_None; PyObject *sep = Py_None;
Py_ssize_t maxsplit = -1; Py_ssize_t maxsplit = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&sep, &maxsplit)) { &sep, &maxsplit)) {
goto exit; goto exit;
} }
...@@ -281,14 +281,14 @@ PyDoc_STRVAR(bytes_translate__doc__, ...@@ -281,14 +281,14 @@ PyDoc_STRVAR(bytes_translate__doc__,
"The remaining characters are mapped through the given translation table."); "The remaining characters are mapped through the given translation table.");
#define BYTES_TRANSLATE_METHODDEF \ #define BYTES_TRANSLATE_METHODDEF \
{"translate", (PyCFunction)bytes_translate, METH_VARARGS|METH_KEYWORDS, bytes_translate__doc__}, {"translate", (PyCFunction)bytes_translate, METH_FASTCALL, bytes_translate__doc__},
static PyObject * static PyObject *
bytes_translate_impl(PyBytesObject *self, PyObject *table, bytes_translate_impl(PyBytesObject *self, PyObject *table,
PyObject *deletechars); PyObject *deletechars);
static PyObject * static PyObject *
bytes_translate(PyBytesObject *self, PyObject *args, PyObject *kwargs) bytes_translate(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"", "delete", NULL}; static const char * const _keywords[] = {"", "delete", NULL};
...@@ -296,7 +296,7 @@ bytes_translate(PyBytesObject *self, PyObject *args, PyObject *kwargs) ...@@ -296,7 +296,7 @@ bytes_translate(PyBytesObject *self, PyObject *args, PyObject *kwargs)
PyObject *table; PyObject *table;
PyObject *deletechars = NULL; PyObject *deletechars = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&table, &deletechars)) { &table, &deletechars)) {
goto exit; goto exit;
} }
...@@ -412,14 +412,14 @@ PyDoc_STRVAR(bytes_decode__doc__, ...@@ -412,14 +412,14 @@ PyDoc_STRVAR(bytes_decode__doc__,
" can handle UnicodeDecodeErrors."); " can handle UnicodeDecodeErrors.");
#define BYTES_DECODE_METHODDEF \ #define BYTES_DECODE_METHODDEF \
{"decode", (PyCFunction)bytes_decode, METH_VARARGS|METH_KEYWORDS, bytes_decode__doc__}, {"decode", (PyCFunction)bytes_decode, METH_FASTCALL, bytes_decode__doc__},
static PyObject * static PyObject *
bytes_decode_impl(PyBytesObject *self, const char *encoding, bytes_decode_impl(PyBytesObject *self, const char *encoding,
const char *errors); const char *errors);
static PyObject * static PyObject *
bytes_decode(PyBytesObject *self, PyObject *args, PyObject *kwargs) bytes_decode(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"encoding", "errors", NULL}; static const char * const _keywords[] = {"encoding", "errors", NULL};
...@@ -427,7 +427,7 @@ bytes_decode(PyBytesObject *self, PyObject *args, PyObject *kwargs) ...@@ -427,7 +427,7 @@ bytes_decode(PyBytesObject *self, PyObject *args, PyObject *kwargs)
const char *encoding = NULL; const char *encoding = NULL;
const char *errors = NULL; const char *errors = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&encoding, &errors)) { &encoding, &errors)) {
goto exit; goto exit;
} }
...@@ -447,20 +447,20 @@ PyDoc_STRVAR(bytes_splitlines__doc__, ...@@ -447,20 +447,20 @@ PyDoc_STRVAR(bytes_splitlines__doc__,
"true."); "true.");
#define BYTES_SPLITLINES_METHODDEF \ #define BYTES_SPLITLINES_METHODDEF \
{"splitlines", (PyCFunction)bytes_splitlines, METH_VARARGS|METH_KEYWORDS, bytes_splitlines__doc__}, {"splitlines", (PyCFunction)bytes_splitlines, METH_FASTCALL, bytes_splitlines__doc__},
static PyObject * static PyObject *
bytes_splitlines_impl(PyBytesObject *self, int keepends); bytes_splitlines_impl(PyBytesObject *self, int keepends);
static PyObject * static PyObject *
bytes_splitlines(PyBytesObject *self, PyObject *args, PyObject *kwargs) bytes_splitlines(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"keepends", NULL}; static const char * const _keywords[] = {"keepends", NULL};
static _PyArg_Parser _parser = {"|i:splitlines", _keywords, 0}; static _PyArg_Parser _parser = {"|i:splitlines", _keywords, 0};
int keepends = 0; int keepends = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&keepends)) { &keepends)) {
goto exit; goto exit;
} }
...@@ -499,4 +499,4 @@ bytes_fromhex(PyTypeObject *type, PyObject *arg) ...@@ -499,4 +499,4 @@ bytes_fromhex(PyTypeObject *type, PyObject *arg)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=5618c05c24c1e617 input=a9049054013a1b77]*/ /*[clinic end generated code: output=2dc3c93cfd2dc440 input=a9049054013a1b77]*/
...@@ -77,14 +77,14 @@ PyDoc_STRVAR(winreg_HKEYType___exit____doc__, ...@@ -77,14 +77,14 @@ PyDoc_STRVAR(winreg_HKEYType___exit____doc__,
"\n"); "\n");
#define WINREG_HKEYTYPE___EXIT___METHODDEF \ #define WINREG_HKEYTYPE___EXIT___METHODDEF \
{"__exit__", (PyCFunction)winreg_HKEYType___exit__, METH_VARARGS|METH_KEYWORDS, winreg_HKEYType___exit____doc__}, {"__exit__", (PyCFunction)winreg_HKEYType___exit__, METH_FASTCALL, winreg_HKEYType___exit____doc__},
static PyObject * static PyObject *
winreg_HKEYType___exit___impl(PyHKEYObject *self, PyObject *exc_type, winreg_HKEYType___exit___impl(PyHKEYObject *self, PyObject *exc_type,
PyObject *exc_value, PyObject *traceback); PyObject *exc_value, PyObject *traceback);
static PyObject * static PyObject *
winreg_HKEYType___exit__(PyHKEYObject *self, PyObject *args, PyObject *kwargs) winreg_HKEYType___exit__(PyHKEYObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"exc_type", "exc_value", "traceback", NULL}; static const char * const _keywords[] = {"exc_type", "exc_value", "traceback", NULL};
...@@ -93,7 +93,7 @@ winreg_HKEYType___exit__(PyHKEYObject *self, PyObject *args, PyObject *kwargs) ...@@ -93,7 +93,7 @@ winreg_HKEYType___exit__(PyHKEYObject *self, PyObject *args, PyObject *kwargs)
PyObject *exc_value; PyObject *exc_value;
PyObject *traceback; PyObject *traceback;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&exc_type, &exc_value, &traceback)) { &exc_type, &exc_value, &traceback)) {
goto exit; goto exit;
} }
...@@ -235,14 +235,14 @@ PyDoc_STRVAR(winreg_CreateKeyEx__doc__, ...@@ -235,14 +235,14 @@ PyDoc_STRVAR(winreg_CreateKeyEx__doc__,
"If the function fails, an OSError exception is raised."); "If the function fails, an OSError exception is raised.");
#define WINREG_CREATEKEYEX_METHODDEF \ #define WINREG_CREATEKEYEX_METHODDEF \
{"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_VARARGS|METH_KEYWORDS, winreg_CreateKeyEx__doc__}, {"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_FASTCALL, winreg_CreateKeyEx__doc__},
static HKEY static HKEY
winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
int reserved, REGSAM access); int reserved, REGSAM access);
static PyObject * static PyObject *
winreg_CreateKeyEx(PyObject *module, PyObject *args, PyObject *kwargs) winreg_CreateKeyEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"key", "sub_key", "reserved", "access", NULL}; static const char * const _keywords[] = {"key", "sub_key", "reserved", "access", NULL};
...@@ -253,7 +253,7 @@ winreg_CreateKeyEx(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -253,7 +253,7 @@ winreg_CreateKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM access = KEY_WRITE; REGSAM access = KEY_WRITE;
HKEY _return_value; HKEY _return_value;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
clinic_HKEY_converter, &key, &sub_key, &reserved, &access)) { clinic_HKEY_converter, &key, &sub_key, &reserved, &access)) {
goto exit; goto exit;
} }
...@@ -334,14 +334,14 @@ PyDoc_STRVAR(winreg_DeleteKeyEx__doc__, ...@@ -334,14 +334,14 @@ PyDoc_STRVAR(winreg_DeleteKeyEx__doc__,
"On unsupported Windows versions, NotImplementedError is raised."); "On unsupported Windows versions, NotImplementedError is raised.");
#define WINREG_DELETEKEYEX_METHODDEF \ #define WINREG_DELETEKEYEX_METHODDEF \
{"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_VARARGS|METH_KEYWORDS, winreg_DeleteKeyEx__doc__}, {"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_FASTCALL, winreg_DeleteKeyEx__doc__},
static PyObject * static PyObject *
winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
REGSAM access, int reserved); REGSAM access, int reserved);
static PyObject * static PyObject *
winreg_DeleteKeyEx(PyObject *module, PyObject *args, PyObject *kwargs) winreg_DeleteKeyEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"key", "sub_key", "access", "reserved", NULL}; static const char * const _keywords[] = {"key", "sub_key", "access", "reserved", NULL};
...@@ -351,7 +351,7 @@ winreg_DeleteKeyEx(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -351,7 +351,7 @@ winreg_DeleteKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM access = KEY_WOW64_64KEY; REGSAM access = KEY_WOW64_64KEY;
int reserved = 0; int reserved = 0;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
clinic_HKEY_converter, &key, &sub_key, &access, &reserved)) { clinic_HKEY_converter, &key, &sub_key, &access, &reserved)) {
goto exit; goto exit;
} }
...@@ -620,14 +620,14 @@ PyDoc_STRVAR(winreg_OpenKey__doc__, ...@@ -620,14 +620,14 @@ PyDoc_STRVAR(winreg_OpenKey__doc__,
"If the function fails, an OSError exception is raised."); "If the function fails, an OSError exception is raised.");
#define WINREG_OPENKEY_METHODDEF \ #define WINREG_OPENKEY_METHODDEF \
{"OpenKey", (PyCFunction)winreg_OpenKey, METH_VARARGS|METH_KEYWORDS, winreg_OpenKey__doc__}, {"OpenKey", (PyCFunction)winreg_OpenKey, METH_FASTCALL, winreg_OpenKey__doc__},
static HKEY static HKEY
winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
int reserved, REGSAM access); int reserved, REGSAM access);
static PyObject * static PyObject *
winreg_OpenKey(PyObject *module, PyObject *args, PyObject *kwargs) winreg_OpenKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"key", "sub_key", "reserved", "access", NULL}; static const char * const _keywords[] = {"key", "sub_key", "reserved", "access", NULL};
...@@ -638,7 +638,7 @@ winreg_OpenKey(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -638,7 +638,7 @@ winreg_OpenKey(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM access = KEY_READ; REGSAM access = KEY_READ;
HKEY _return_value; HKEY _return_value;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
clinic_HKEY_converter, &key, &sub_key, &reserved, &access)) { clinic_HKEY_converter, &key, &sub_key, &reserved, &access)) {
goto exit; goto exit;
} }
...@@ -672,14 +672,14 @@ PyDoc_STRVAR(winreg_OpenKeyEx__doc__, ...@@ -672,14 +672,14 @@ PyDoc_STRVAR(winreg_OpenKeyEx__doc__,
"If the function fails, an OSError exception is raised."); "If the function fails, an OSError exception is raised.");
#define WINREG_OPENKEYEX_METHODDEF \ #define WINREG_OPENKEYEX_METHODDEF \
{"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_VARARGS|METH_KEYWORDS, winreg_OpenKeyEx__doc__}, {"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_FASTCALL, winreg_OpenKeyEx__doc__},
static HKEY static HKEY
winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
int reserved, REGSAM access); int reserved, REGSAM access);
static PyObject * static PyObject *
winreg_OpenKeyEx(PyObject *module, PyObject *args, PyObject *kwargs) winreg_OpenKeyEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"key", "sub_key", "reserved", "access", NULL}; static const char * const _keywords[] = {"key", "sub_key", "reserved", "access", NULL};
...@@ -690,7 +690,7 @@ winreg_OpenKeyEx(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -690,7 +690,7 @@ winreg_OpenKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
REGSAM access = KEY_READ; REGSAM access = KEY_READ;
HKEY _return_value; HKEY _return_value;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
clinic_HKEY_converter, &key, &sub_key, &reserved, &access)) { clinic_HKEY_converter, &key, &sub_key, &reserved, &access)) {
goto exit; goto exit;
} }
...@@ -1091,4 +1091,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg) ...@@ -1091,4 +1091,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=5b53d19cbe3f37cd input=a9049054013a1b77]*/ /*[clinic end generated code: output=16dd06be6e14b86e input=a9049054013a1b77]*/
...@@ -14,13 +14,13 @@ PyDoc_STRVAR(winsound_PlaySound__doc__, ...@@ -14,13 +14,13 @@ PyDoc_STRVAR(winsound_PlaySound__doc__,
" Flag values, ored together. See module documentation."); " Flag values, ored together. See module documentation.");
#define WINSOUND_PLAYSOUND_METHODDEF \ #define WINSOUND_PLAYSOUND_METHODDEF \
{"PlaySound", (PyCFunction)winsound_PlaySound, METH_VARARGS|METH_KEYWORDS, winsound_PlaySound__doc__}, {"PlaySound", (PyCFunction)winsound_PlaySound, METH_FASTCALL, winsound_PlaySound__doc__},
static PyObject * static PyObject *
winsound_PlaySound_impl(PyObject *module, PyObject *sound, int flags); winsound_PlaySound_impl(PyObject *module, PyObject *sound, int flags);
static PyObject * static PyObject *
winsound_PlaySound(PyObject *module, PyObject *args, PyObject *kwargs) winsound_PlaySound(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"sound", "flags", NULL}; static const char * const _keywords[] = {"sound", "flags", NULL};
...@@ -28,7 +28,7 @@ winsound_PlaySound(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -28,7 +28,7 @@ winsound_PlaySound(PyObject *module, PyObject *args, PyObject *kwargs)
PyObject *sound; PyObject *sound;
int flags; int flags;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&sound, &flags)) { &sound, &flags)) {
goto exit; goto exit;
} }
...@@ -51,13 +51,13 @@ PyDoc_STRVAR(winsound_Beep__doc__, ...@@ -51,13 +51,13 @@ PyDoc_STRVAR(winsound_Beep__doc__,
" How long the sound should play, in milliseconds."); " How long the sound should play, in milliseconds.");
#define WINSOUND_BEEP_METHODDEF \ #define WINSOUND_BEEP_METHODDEF \
{"Beep", (PyCFunction)winsound_Beep, METH_VARARGS|METH_KEYWORDS, winsound_Beep__doc__}, {"Beep", (PyCFunction)winsound_Beep, METH_FASTCALL, winsound_Beep__doc__},
static PyObject * static PyObject *
winsound_Beep_impl(PyObject *module, int frequency, int duration); winsound_Beep_impl(PyObject *module, int frequency, int duration);
static PyObject * static PyObject *
winsound_Beep(PyObject *module, PyObject *args, PyObject *kwargs) winsound_Beep(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"frequency", "duration", NULL}; static const char * const _keywords[] = {"frequency", "duration", NULL};
...@@ -65,7 +65,7 @@ winsound_Beep(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -65,7 +65,7 @@ winsound_Beep(PyObject *module, PyObject *args, PyObject *kwargs)
int frequency; int frequency;
int duration; int duration;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&frequency, &duration)) { &frequency, &duration)) {
goto exit; goto exit;
} }
...@@ -84,20 +84,20 @@ PyDoc_STRVAR(winsound_MessageBeep__doc__, ...@@ -84,20 +84,20 @@ PyDoc_STRVAR(winsound_MessageBeep__doc__,
"x defaults to MB_OK."); "x defaults to MB_OK.");
#define WINSOUND_MESSAGEBEEP_METHODDEF \ #define WINSOUND_MESSAGEBEEP_METHODDEF \
{"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_VARARGS|METH_KEYWORDS, winsound_MessageBeep__doc__}, {"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_FASTCALL, winsound_MessageBeep__doc__},
static PyObject * static PyObject *
winsound_MessageBeep_impl(PyObject *module, int type); winsound_MessageBeep_impl(PyObject *module, int type);
static PyObject * static PyObject *
winsound_MessageBeep(PyObject *module, PyObject *args, PyObject *kwargs) winsound_MessageBeep(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"type", NULL}; static const char * const _keywords[] = {"type", NULL};
static _PyArg_Parser _parser = {"|i:MessageBeep", _keywords, 0}; static _PyArg_Parser _parser = {"|i:MessageBeep", _keywords, 0};
int type = MB_OK; int type = MB_OK;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&type)) { &type)) {
goto exit; goto exit;
} }
...@@ -106,4 +106,4 @@ winsound_MessageBeep(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -106,4 +106,4 @@ winsound_MessageBeep(PyObject *module, PyObject *args, PyObject *kwargs)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=40b3d3ef2faefb15 input=a9049054013a1b77]*/ /*[clinic end generated code: output=bfe16b2b8b490cb1 input=a9049054013a1b77]*/
...@@ -148,7 +148,7 @@ PyDoc_STRVAR(builtin_compile__doc__, ...@@ -148,7 +148,7 @@ PyDoc_STRVAR(builtin_compile__doc__,
"in addition to any features explicitly specified."); "in addition to any features explicitly specified.");
#define BUILTIN_COMPILE_METHODDEF \ #define BUILTIN_COMPILE_METHODDEF \
{"compile", (PyCFunction)builtin_compile, METH_VARARGS|METH_KEYWORDS, builtin_compile__doc__}, {"compile", (PyCFunction)builtin_compile, METH_FASTCALL, builtin_compile__doc__},
static PyObject * static PyObject *
builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename, builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
...@@ -156,7 +156,7 @@ builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename, ...@@ -156,7 +156,7 @@ builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
int optimize); int optimize);
static PyObject * static PyObject *
builtin_compile(PyObject *module, PyObject *args, PyObject *kwargs) builtin_compile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
static const char * const _keywords[] = {"source", "filename", "mode", "flags", "dont_inherit", "optimize", NULL}; static const char * const _keywords[] = {"source", "filename", "mode", "flags", "dont_inherit", "optimize", NULL};
...@@ -168,7 +168,7 @@ builtin_compile(PyObject *module, PyObject *args, PyObject *kwargs) ...@@ -168,7 +168,7 @@ builtin_compile(PyObject *module, PyObject *args, PyObject *kwargs)
int dont_inherit = 0; int dont_inherit = 0;
int optimize = -1; int optimize = -1;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
&source, PyUnicode_FSDecoder, &filename, &mode, &flags, &dont_inherit, &optimize)) { &source, PyUnicode_FSDecoder, &filename, &mode, &flags, &dont_inherit, &optimize)) {
goto exit; goto exit;
} }
...@@ -674,4 +674,4 @@ builtin_issubclass(PyObject *module, PyObject *args) ...@@ -674,4 +674,4 @@ builtin_issubclass(PyObject *module, PyObject *args)
exit: exit:
return return_value; return return_value;
} }
/*[clinic end generated code: output=790cb3d26531dfda input=a9049054013a1b77]*/ /*[clinic end generated code: output=63483deb75805f7c input=a9049054013a1b77]*/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment