diff -r ee074604bf0c Include/methodobject.h --- a/Include/methodobject.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Include/methodobject.h Tue Feb 07 15:02:48 2017 +0200 @@ -16,10 +16,12 @@ PyAPI_DATA(PyTypeObject) PyCFunction_Typ #define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type) typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); -typedef PyObject *(*_PyCFunctionFast) (PyObject *self, PyObject **args, - Py_ssize_t nargs, PyObject *kwnames); +typedef PyObject *(*_PyCFunctionFast) (PyObject *, PyObject **, Py_ssize_t); typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *, PyObject *); +typedef PyObject *(*_PyCFunctionFastWithKeywords) (PyObject *, + PyObject **, Py_ssize_t, + PyObject *); typedef PyObject *(*PyNoArgsFunction)(PyObject *); PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *); diff -r ee074604bf0c Modules/_collectionsmodule.c --- a/Modules/_collectionsmodule.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_collectionsmodule.c Tue Feb 07 15:02:48 2017 +0200 @@ -908,14 +908,10 @@ done: } static PyObject * -deque_rotate(dequeobject *deque, PyObject **args, Py_ssize_t nargs, - PyObject *kwnames) +deque_rotate(dequeobject *deque, PyObject **args, Py_ssize_t nargs) { Py_ssize_t n=1; - if (!_PyArg_NoStackKeywords("rotate", kwnames)) { - return NULL; - } if (!_PyArg_ParseStack(args, nargs, "|n:rotate", &n)) { return NULL; } @@ -1048,8 +1044,7 @@ deque_len(dequeobject *deque) } static PyObject * -deque_index(dequeobject *deque, PyObject **args, Py_ssize_t nargs, - PyObject *kwnames) +deque_index(dequeobject *deque, PyObject **args, Py_ssize_t nargs) { Py_ssize_t i, n, start=0, stop=Py_SIZE(deque); PyObject *v, *item; @@ -1058,9 +1053,6 @@ deque_index(dequeobject *deque, PyObject size_t start_state = deque->state; int cmp; - if (!_PyArg_NoStackKeywords("index", kwnames)) { - return NULL; - } if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index", &v, _PyEval_SliceIndex, &start, _PyEval_SliceIndex, &stop)) { @@ -1129,17 +1121,13 @@ PyDoc_STRVAR(index_doc, */ static PyObject * -deque_insert(dequeobject *deque, PyObject **args, Py_ssize_t nargs, - PyObject *kwnames) +deque_insert(dequeobject *deque, PyObject **args, Py_ssize_t nargs) { Py_ssize_t index; Py_ssize_t n = Py_SIZE(deque); PyObject *value; PyObject *rv; - if (!_PyArg_NoStackKeywords("insert", kwnames)) { - return NULL; - } if (!_PyArg_ParseStack(args, nargs, "nO:insert", &index, &value)) { return NULL; } diff -r ee074604bf0c Modules/_elementtree.c --- a/Modules/_elementtree.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_elementtree.c Tue Feb 07 15:02:48 2017 +0200 @@ -2743,7 +2743,7 @@ typedef struct { } XMLParserObject; static PyObject* -_elementtree_XMLParser_doctype(XMLParserObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); +_elementtree_XMLParser_doctype(XMLParserObject *self, PyObject **args, Py_ssize_t nargs); static PyObject * _elementtree_XMLParser_doctype_impl(XMLParserObject *self, PyObject *name, PyObject *pubid, PyObject *system); @@ -3712,7 +3712,7 @@ static PyMethodDef element_methods[] = { _ELEMENTTREE_ELEMENT_ITERTEXT_METHODDEF _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF - {"getiterator", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL, _elementtree_Element_iter__doc__}, + {"getiterator", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_iter__doc__}, _ELEMENTTREE_ELEMENT_GETCHILDREN_METHODDEF _ELEMENTTREE_ELEMENT_ITEMS_METHODDEF diff -r ee074604bf0c Modules/_hashopenssl.c --- a/Modules/_hashopenssl.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_hashopenssl.c Tue Feb 07 15:02:48 2017 +0200 @@ -936,7 +936,7 @@ generate_hash_name_list(void) /* a PyMethodDef structure for the constructor */ #define CONSTRUCTOR_METH_DEF(NAME) \ - {"openssl_" #NAME, (PyCFunction)EVP_new_ ## NAME, METH_FASTCALL, \ + {"openssl_" #NAME, (PyCFunction)EVP_new_ ## NAME, METH_FASTCALL | METH_KEYWORDS, \ PyDoc_STR("Returns a " #NAME \ " hash object; optionally initialized with a string") \ } diff -r ee074604bf0c Modules/_io/clinic/_iomodule.c.h --- a/Modules/_io/clinic/_iomodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/_iomodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -127,7 +127,7 @@ PyDoc_STRVAR(_io_open__doc__, "opened in a binary mode."); #define _IO_OPEN_METHODDEF \ - {"open", (PyCFunction)_io_open, METH_FASTCALL, _io_open__doc__}, + {"open", (PyCFunction)_io_open, METH_FASTCALL|METH_KEYWORDS, _io_open__doc__}, static PyObject * _io_open_impl(PyObject *module, PyObject *file, const char *mode, @@ -158,4 +158,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=79fd04d9c9d8f28f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a748395f9589de02 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/bufferedio.c.h --- a/Modules/_io/clinic/bufferedio.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/bufferedio.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -97,7 +97,7 @@ static PyObject * _io__Buffered_peek_impl(buffered *self, Py_ssize_t size); static PyObject * -_io__Buffered_peek(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__Buffered_peek(buffered *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t size = 0; @@ -106,10 +106,6 @@ static PyObject * &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("peek", kwnames)) { - goto exit; - } return_value = _io__Buffered_peek_impl(self, size); exit: @@ -128,7 +124,7 @@ static PyObject * _io__Buffered_read_impl(buffered *self, Py_ssize_t n); static PyObject * -_io__Buffered_read(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__Buffered_read(buffered *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t n = -1; @@ -137,10 +133,6 @@ static PyObject * _PyIO_ConvertSsize_t, &n)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io__Buffered_read_impl(self, n); exit: @@ -159,7 +151,7 @@ static PyObject * _io__Buffered_read1_impl(buffered *self, Py_ssize_t n); static PyObject * -_io__Buffered_read1(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__Buffered_read1(buffered *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t n = -1; @@ -168,10 +160,6 @@ static PyObject * &n)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read1", kwnames)) { - goto exit; - } return_value = _io__Buffered_read1_impl(self, n); exit: @@ -252,7 +240,7 @@ static PyObject * _io__Buffered_readline_impl(buffered *self, Py_ssize_t size); static PyObject * -_io__Buffered_readline(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__Buffered_readline(buffered *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t size = -1; @@ -261,10 +249,6 @@ static PyObject * _PyIO_ConvertSsize_t, &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readline", kwnames)) { - goto exit; - } return_value = _io__Buffered_readline_impl(self, size); exit: @@ -283,7 +267,7 @@ static PyObject * _io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence); static PyObject * -_io__Buffered_seek(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__Buffered_seek(buffered *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *targetobj; @@ -293,10 +277,6 @@ static PyObject * &targetobj, &whence)) { goto exit; } - - if (!_PyArg_NoStackKeywords("seek", kwnames)) { - goto exit; - } return_value = _io__Buffered_seek_impl(self, targetobj, whence); exit: @@ -315,7 +295,7 @@ static PyObject * _io__Buffered_truncate_impl(buffered *self, PyObject *pos); static PyObject * -_io__Buffered_truncate(buffered *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__Buffered_truncate(buffered *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *pos = Py_None; @@ -325,10 +305,6 @@ static PyObject * &pos)) { goto exit; } - - if (!_PyArg_NoStackKeywords("truncate", kwnames)) { - goto exit; - } return_value = _io__Buffered_truncate_impl(self, pos); exit: @@ -500,4 +476,4 @@ static int exit: return return_value; } -/*[clinic end generated code: output=e37b969b1acaa09c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bc0f0e253f335221 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/bytesio.c.h --- a/Modules/_io/clinic/bytesio.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/bytesio.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -164,7 +164,7 @@ static PyObject * _io_BytesIO_read_impl(bytesio *self, PyObject *arg); static PyObject * -_io_BytesIO_read(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_BytesIO_read(bytesio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -174,10 +174,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io_BytesIO_read_impl(self, arg); exit: @@ -200,7 +196,7 @@ static PyObject * _io_BytesIO_read1_impl(bytesio *self, PyObject *size); static PyObject * -_io_BytesIO_read1(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_BytesIO_read1(bytesio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *size = Py_None; @@ -210,10 +206,6 @@ static PyObject * &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read1", kwnames)) { - goto exit; - } return_value = _io_BytesIO_read1_impl(self, size); exit: @@ -237,7 +229,7 @@ static PyObject * _io_BytesIO_readline_impl(bytesio *self, PyObject *arg); static PyObject * -_io_BytesIO_readline(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_BytesIO_readline(bytesio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -247,10 +239,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readline", kwnames)) { - goto exit; - } return_value = _io_BytesIO_readline_impl(self, arg); exit: @@ -274,7 +262,7 @@ static PyObject * _io_BytesIO_readlines_impl(bytesio *self, PyObject *arg); static PyObject * -_io_BytesIO_readlines(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_BytesIO_readlines(bytesio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -284,10 +272,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readlines", kwnames)) { - goto exit; - } return_value = _io_BytesIO_readlines_impl(self, arg); exit: @@ -345,7 +329,7 @@ static PyObject * _io_BytesIO_truncate_impl(bytesio *self, PyObject *arg); static PyObject * -_io_BytesIO_truncate(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_BytesIO_truncate(bytesio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -355,10 +339,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("truncate", kwnames)) { - goto exit; - } return_value = _io_BytesIO_truncate_impl(self, arg); exit: @@ -384,7 +364,7 @@ static PyObject * _io_BytesIO_seek_impl(bytesio *self, Py_ssize_t pos, int whence); static PyObject * -_io_BytesIO_seek(bytesio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_BytesIO_seek(bytesio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t pos; @@ -394,10 +374,6 @@ static PyObject * &pos, &whence)) { goto exit; } - - if (!_PyArg_NoStackKeywords("seek", kwnames)) { - goto exit; - } return_value = _io_BytesIO_seek_impl(self, pos, whence); exit: @@ -472,4 +448,4 @@ static int exit: return return_value; } -/*[clinic end generated code: output=138ee6ad6951bc84 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1115ae36afc53b4b input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/fileio.c.h --- a/Modules/_io/clinic/fileio.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/fileio.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -208,7 +208,7 @@ static PyObject * _io_FileIO_read_impl(fileio *self, Py_ssize_t size); static PyObject * -_io_FileIO_read(fileio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_FileIO_read(fileio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t size = -1; @@ -217,10 +217,6 @@ static PyObject * _PyIO_ConvertSsize_t, &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io_FileIO_read_impl(self, size); exit: @@ -284,7 +280,7 @@ static PyObject * _io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence); static PyObject * -_io_FileIO_seek(fileio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_FileIO_seek(fileio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *pos; @@ -294,10 +290,6 @@ static PyObject * &pos, &whence)) { goto exit; } - - if (!_PyArg_NoStackKeywords("seek", kwnames)) { - goto exit; - } return_value = _io_FileIO_seek_impl(self, pos, whence); exit: @@ -342,7 +334,7 @@ static PyObject * _io_FileIO_truncate_impl(fileio *self, PyObject *posobj); static PyObject * -_io_FileIO_truncate(fileio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_FileIO_truncate(fileio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *posobj = NULL; @@ -352,10 +344,6 @@ static PyObject * &posobj)) { goto exit; } - - if (!_PyArg_NoStackKeywords("truncate", kwnames)) { - goto exit; - } return_value = _io_FileIO_truncate_impl(self, posobj); exit: @@ -385,4 +373,4 @@ static PyObject * #ifndef _IO_FILEIO_TRUNCATE_METHODDEF #define _IO_FILEIO_TRUNCATE_METHODDEF #endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */ -/*[clinic end generated code: output=034d782a0daa82bd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9d282c5eb1399024 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/iobase.c.h --- a/Modules/_io/clinic/iobase.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/iobase.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -180,7 +180,7 @@ static PyObject * _io__IOBase_readline_impl(PyObject *self, Py_ssize_t limit); static PyObject * -_io__IOBase_readline(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__IOBase_readline(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t limit = -1; @@ -189,10 +189,6 @@ static PyObject * _PyIO_ConvertSsize_t, &limit)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readline", kwnames)) { - goto exit; - } return_value = _io__IOBase_readline_impl(self, limit); exit: @@ -216,7 +212,7 @@ static PyObject * _io__IOBase_readlines_impl(PyObject *self, Py_ssize_t hint); static PyObject * -_io__IOBase_readlines(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__IOBase_readlines(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t hint = -1; @@ -225,10 +221,6 @@ static PyObject * _PyIO_ConvertSsize_t, &hint)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readlines", kwnames)) { - goto exit; - } return_value = _io__IOBase_readlines_impl(self, hint); exit: @@ -255,7 +247,7 @@ static PyObject * _io__RawIOBase_read_impl(PyObject *self, Py_ssize_t n); static PyObject * -_io__RawIOBase_read(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__RawIOBase_read(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t n = -1; @@ -264,10 +256,6 @@ static PyObject * &n)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io__RawIOBase_read_impl(self, n); exit: @@ -291,4 +279,4 @@ static PyObject * { return _io__RawIOBase_readall_impl(self); } -/*[clinic end generated code: output=1bcece367fc7b0cd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ec8a2ef87208ce4c input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/stringio.c.h --- a/Modules/_io/clinic/stringio.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/stringio.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -54,7 +54,7 @@ static PyObject * _io_StringIO_read_impl(stringio *self, PyObject *arg); static PyObject * -_io_StringIO_read(stringio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_StringIO_read(stringio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -64,10 +64,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io_StringIO_read_impl(self, arg); exit: @@ -89,7 +85,7 @@ static PyObject * _io_StringIO_readline_impl(stringio *self, PyObject *arg); static PyObject * -_io_StringIO_readline(stringio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_StringIO_readline(stringio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -99,10 +95,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readline", kwnames)) { - goto exit; - } return_value = _io_StringIO_readline_impl(self, arg); exit: @@ -126,7 +118,7 @@ static PyObject * _io_StringIO_truncate_impl(stringio *self, PyObject *arg); static PyObject * -_io_StringIO_truncate(stringio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_StringIO_truncate(stringio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *arg = Py_None; @@ -136,10 +128,6 @@ static PyObject * &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("truncate", kwnames)) { - goto exit; - } return_value = _io_StringIO_truncate_impl(self, arg); exit: @@ -165,7 +153,7 @@ static PyObject * _io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence); static PyObject * -_io_StringIO_seek(stringio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_StringIO_seek(stringio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t pos; @@ -175,10 +163,6 @@ static PyObject * &pos, &whence)) { goto exit; } - - if (!_PyArg_NoStackKeywords("seek", kwnames)) { - goto exit; - } return_value = _io_StringIO_seek_impl(self, pos, whence); exit: @@ -305,4 +289,4 @@ static PyObject * { return _io_StringIO_seekable_impl(self); } -/*[clinic end generated code: output=ce8018ec29def422 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d69e0df410070292 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/textio.c.h --- a/Modules/_io/clinic/textio.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/textio.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -46,7 +46,7 @@ PyDoc_STRVAR(_io_IncrementalNewlineDecod "\n"); #define _IO_INCREMENTALNEWLINEDECODER_DECODE_METHODDEF \ - {"decode", (PyCFunction)_io_IncrementalNewlineDecoder_decode, METH_FASTCALL, _io_IncrementalNewlineDecoder_decode__doc__}, + {"decode", (PyCFunction)_io_IncrementalNewlineDecoder_decode, METH_FASTCALL|METH_KEYWORDS, _io_IncrementalNewlineDecoder_decode__doc__}, static PyObject * _io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self, @@ -231,7 +231,7 @@ static PyObject * _io_TextIOWrapper_read_impl(textio *self, Py_ssize_t n); static PyObject * -_io_TextIOWrapper_read(textio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_TextIOWrapper_read(textio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t n = -1; @@ -240,10 +240,6 @@ static PyObject * _PyIO_ConvertSsize_t, &n)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io_TextIOWrapper_read_impl(self, n); exit: @@ -262,7 +258,7 @@ static PyObject * _io_TextIOWrapper_readline_impl(textio *self, Py_ssize_t size); static PyObject * -_io_TextIOWrapper_readline(textio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_TextIOWrapper_readline(textio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t size = -1; @@ -271,10 +267,6 @@ static PyObject * &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readline", kwnames)) { - goto exit; - } return_value = _io_TextIOWrapper_readline_impl(self, size); exit: @@ -293,7 +285,7 @@ static PyObject * _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence); static PyObject * -_io_TextIOWrapper_seek(textio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_TextIOWrapper_seek(textio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *cookieObj; @@ -303,10 +295,6 @@ static PyObject * &cookieObj, &whence)) { goto exit; } - - if (!_PyArg_NoStackKeywords("seek", kwnames)) { - goto exit; - } return_value = _io_TextIOWrapper_seek_impl(self, cookieObj, whence); exit: @@ -342,7 +330,7 @@ static PyObject * _io_TextIOWrapper_truncate_impl(textio *self, PyObject *pos); static PyObject * -_io_TextIOWrapper_truncate(textio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io_TextIOWrapper_truncate(textio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *pos = Py_None; @@ -352,10 +340,6 @@ static PyObject * &pos)) { goto exit; } - - if (!_PyArg_NoStackKeywords("truncate", kwnames)) { - goto exit; - } return_value = _io_TextIOWrapper_truncate_impl(self, pos); exit: @@ -480,4 +464,4 @@ static PyObject * { return _io_TextIOWrapper_close_impl(self); } -/*[clinic end generated code: output=67eba50449900a96 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=eee57db91b6b0550 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_io/clinic/winconsoleio.c.h --- a/Modules/_io/clinic/winconsoleio.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_io/clinic/winconsoleio.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -215,7 +215,7 @@ static PyObject * _io__WindowsConsoleIO_read_impl(winconsoleio *self, Py_ssize_t size); static PyObject * -_io__WindowsConsoleIO_read(winconsoleio *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_io__WindowsConsoleIO_read(winconsoleio *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t size = -1; @@ -224,10 +224,6 @@ static PyObject * _PyIO_ConvertSsize_t, &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _io__WindowsConsoleIO_read_impl(self, size); exit: @@ -332,4 +328,4 @@ static PyObject * #ifndef _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF #define _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF #endif /* !defined(_IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF) */ -/*[clinic end generated code: output=04dab03363f5e304 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3ccf320e2d622635 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_sha3/clinic/sha3module.c.h --- a/Modules/_sha3/clinic/sha3module.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_sha3/clinic/sha3module.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -99,7 +99,7 @@ PyDoc_STRVAR(_sha3_shake_128_digest__doc "Return the digest value as a string of binary data."); #define _SHA3_SHAKE_128_DIGEST_METHODDEF \ - {"digest", (PyCFunction)_sha3_shake_128_digest, METH_FASTCALL, _sha3_shake_128_digest__doc__}, + {"digest", (PyCFunction)_sha3_shake_128_digest, METH_FASTCALL|METH_KEYWORDS, _sha3_shake_128_digest__doc__}, static PyObject * _sha3_shake_128_digest_impl(SHA3object *self, unsigned long length); @@ -129,7 +129,7 @@ PyDoc_STRVAR(_sha3_shake_128_hexdigest__ "Return the digest value as a string of hexadecimal digits."); #define _SHA3_SHAKE_128_HEXDIGEST_METHODDEF \ - {"hexdigest", (PyCFunction)_sha3_shake_128_hexdigest, METH_FASTCALL, _sha3_shake_128_hexdigest__doc__}, + {"hexdigest", (PyCFunction)_sha3_shake_128_hexdigest, METH_FASTCALL|METH_KEYWORDS, _sha3_shake_128_hexdigest__doc__}, static PyObject * _sha3_shake_128_hexdigest_impl(SHA3object *self, unsigned long length); @@ -151,4 +151,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=f2278bf0852a7850 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7c1ac102411764f2 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/_struct.c --- a/Modules/_struct.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/_struct.c Tue Feb 07 15:02:48 2017 +0200 @@ -1845,7 +1845,7 @@ to the format string S.format. See help strings."); static PyObject * -s_pack(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +s_pack(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyStructObject *soself; PyObject *result; @@ -1860,9 +1860,6 @@ s_pack(PyObject *self, PyObject **args, "pack expected %zd items for packing (got %zd)", soself->s_len, nargs); return NULL; } - if (!_PyArg_NoStackKeywords("pack", kwnames)) { - return NULL; - } /* Allocate a new string */ result = PyBytes_FromStringAndSize((char *)NULL, soself->s_size); @@ -1887,7 +1884,7 @@ offset. Note that the offset is a requi help(struct) for more on format strings."); static PyObject * -s_pack_into(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +s_pack_into(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyStructObject *soself; Py_buffer buffer; @@ -1914,9 +1911,6 @@ s_pack_into(PyObject *self, PyObject **a } return NULL; } - if (!_PyArg_NoStackKeywords("pack_into", kwnames)) { - return NULL; - } /* Extract a writable memory buffer from the first argument */ if (!PyArg_Parse(args[0], "w*", &buffer)) @@ -2124,7 +2118,7 @@ Return a bytes object containing the val to the format string. See help(struct) for more on format strings."); static PyObject * -pack(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +pack(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *s_object = NULL; PyObject *format, *result; @@ -2138,7 +2132,7 @@ pack(PyObject *self, PyObject **args, Py if (!cache_struct_converter(format, &s_object)) { return NULL; } - result = s_pack(s_object, args + 1, nargs - 1, kwnames); + result = s_pack(s_object, args + 1, nargs - 1); Py_DECREF(s_object); return result; } @@ -2152,7 +2146,7 @@ that the offset is a required argument. on format strings."); static PyObject * -pack_into(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +pack_into(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *s_object = NULL; PyObject *format, *result; @@ -2166,7 +2160,7 @@ pack_into(PyObject *self, PyObject **arg if (!cache_struct_converter(format, &s_object)) { return NULL; } - result = s_pack_into(s_object, args + 1, nargs - 1, kwnames); + result = s_pack_into(s_object, args + 1, nargs - 1); Py_DECREF(s_object); return result; } diff -r ee074604bf0c Modules/cjkcodecs/clinic/multibytecodec.c.h --- a/Modules/cjkcodecs/clinic/multibytecodec.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/cjkcodecs/clinic/multibytecodec.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -14,7 +14,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteCo "registered with codecs.register_error that can handle UnicodeEncodeErrors."); #define _MULTIBYTECODEC_MULTIBYTECODEC_ENCODE_METHODDEF \ - {"encode", (PyCFunction)_multibytecodec_MultibyteCodec_encode, METH_FASTCALL, _multibytecodec_MultibyteCodec_encode__doc__}, + {"encode", (PyCFunction)_multibytecodec_MultibyteCodec_encode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteCodec_encode__doc__}, static PyObject * _multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self, @@ -52,7 +52,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteCo "codecs.register_error that is able to handle UnicodeDecodeErrors.\""); #define _MULTIBYTECODEC_MULTIBYTECODEC_DECODE_METHODDEF \ - {"decode", (PyCFunction)_multibytecodec_MultibyteCodec_decode, METH_FASTCALL, _multibytecodec_MultibyteCodec_decode__doc__}, + {"decode", (PyCFunction)_multibytecodec_MultibyteCodec_decode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteCodec_decode__doc__}, static PyObject * _multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self, @@ -89,7 +89,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteIn "\n"); #define _MULTIBYTECODEC_MULTIBYTEINCREMENTALENCODER_ENCODE_METHODDEF \ - {"encode", (PyCFunction)_multibytecodec_MultibyteIncrementalEncoder_encode, METH_FASTCALL, _multibytecodec_MultibyteIncrementalEncoder_encode__doc__}, + {"encode", (PyCFunction)_multibytecodec_MultibyteIncrementalEncoder_encode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteIncrementalEncoder_encode__doc__}, static PyObject * _multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self, @@ -138,7 +138,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteIn "\n"); #define _MULTIBYTECODEC_MULTIBYTEINCREMENTALDECODER_DECODE_METHODDEF \ - {"decode", (PyCFunction)_multibytecodec_MultibyteIncrementalDecoder_decode, METH_FASTCALL, _multibytecodec_MultibyteIncrementalDecoder_decode__doc__}, + {"decode", (PyCFunction)_multibytecodec_MultibyteIncrementalDecoder_decode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteIncrementalDecoder_decode__doc__}, static PyObject * _multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self, @@ -199,7 +199,7 @@ static PyObject * PyObject *sizeobj); static PyObject * -_multibytecodec_MultibyteStreamReader_read(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_multibytecodec_MultibyteStreamReader_read(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *sizeobj = Py_None; @@ -209,10 +209,6 @@ static PyObject * &sizeobj)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _multibytecodec_MultibyteStreamReader_read_impl(self, sizeobj); exit: @@ -232,7 +228,7 @@ static PyObject * PyObject *sizeobj); static PyObject * -_multibytecodec_MultibyteStreamReader_readline(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_multibytecodec_MultibyteStreamReader_readline(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *sizeobj = Py_None; @@ -242,10 +238,6 @@ static PyObject * &sizeobj)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readline", kwnames)) { - goto exit; - } return_value = _multibytecodec_MultibyteStreamReader_readline_impl(self, sizeobj); exit: @@ -265,7 +257,7 @@ static PyObject * PyObject *sizehintobj); static PyObject * -_multibytecodec_MultibyteStreamReader_readlines(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_multibytecodec_MultibyteStreamReader_readlines(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *sizehintobj = Py_None; @@ -275,10 +267,6 @@ static PyObject * &sizehintobj)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readlines", kwnames)) { - goto exit; - } return_value = _multibytecodec_MultibyteStreamReader_readlines_impl(self, sizehintobj); exit: @@ -342,4 +330,4 @@ PyDoc_STRVAR(_multibytecodec___create_co #define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \ {"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__}, -/*[clinic end generated code: output=26710ffd4b3c7d7e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=dc2352619de9d74f input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_asynciomodule.c.h --- a/Modules/clinic/_asynciomodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_asynciomodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -267,7 +267,7 @@ PyDoc_STRVAR(_asyncio_Task_current_task_ "None is returned when called not in the context of a Task."); #define _ASYNCIO_TASK_CURRENT_TASK_METHODDEF \ - {"current_task", (PyCFunction)_asyncio_Task_current_task, METH_FASTCALL|METH_CLASS, _asyncio_Task_current_task__doc__}, + {"current_task", (PyCFunction)_asyncio_Task_current_task, METH_FASTCALL|METH_KEYWORDS|METH_CLASS, _asyncio_Task_current_task__doc__}, static PyObject * _asyncio_Task_current_task_impl(PyTypeObject *type, PyObject *loop); @@ -299,7 +299,7 @@ PyDoc_STRVAR(_asyncio_Task_all_tasks__do "By default all tasks for the current event loop are returned."); #define _ASYNCIO_TASK_ALL_TASKS_METHODDEF \ - {"all_tasks", (PyCFunction)_asyncio_Task_all_tasks, METH_FASTCALL|METH_CLASS, _asyncio_Task_all_tasks__doc__}, + {"all_tasks", (PyCFunction)_asyncio_Task_all_tasks, METH_FASTCALL|METH_KEYWORDS|METH_CLASS, _asyncio_Task_all_tasks__doc__}, static PyObject * _asyncio_Task_all_tasks_impl(PyTypeObject *type, PyObject *loop); @@ -399,7 +399,7 @@ PyDoc_STRVAR(_asyncio_Task_get_stack__do "returned for a suspended coroutine."); #define _ASYNCIO_TASK_GET_STACK_METHODDEF \ - {"get_stack", (PyCFunction)_asyncio_Task_get_stack, METH_FASTCALL, _asyncio_Task_get_stack__doc__}, + {"get_stack", (PyCFunction)_asyncio_Task_get_stack, METH_FASTCALL|METH_KEYWORDS, _asyncio_Task_get_stack__doc__}, static PyObject * _asyncio_Task_get_stack_impl(TaskObj *self, PyObject *limit); @@ -435,7 +435,7 @@ PyDoc_STRVAR(_asyncio_Task_print_stack__ "to sys.stderr."); #define _ASYNCIO_TASK_PRINT_STACK_METHODDEF \ - {"print_stack", (PyCFunction)_asyncio_Task_print_stack, METH_FASTCALL, _asyncio_Task_print_stack__doc__}, + {"print_stack", (PyCFunction)_asyncio_Task_print_stack, METH_FASTCALL|METH_KEYWORDS, _asyncio_Task_print_stack__doc__}, static PyObject * _asyncio_Task_print_stack_impl(TaskObj *self, PyObject *limit, @@ -466,7 +466,7 @@ PyDoc_STRVAR(_asyncio_Task__step__doc__, "\n"); #define _ASYNCIO_TASK__STEP_METHODDEF \ - {"_step", (PyCFunction)_asyncio_Task__step, METH_FASTCALL, _asyncio_Task__step__doc__}, + {"_step", (PyCFunction)_asyncio_Task__step, METH_FASTCALL|METH_KEYWORDS, _asyncio_Task__step__doc__}, static PyObject * _asyncio_Task__step_impl(TaskObj *self, PyObject *exc); @@ -495,7 +495,7 @@ PyDoc_STRVAR(_asyncio_Task__wakeup__doc_ "\n"); #define _ASYNCIO_TASK__WAKEUP_METHODDEF \ - {"_wakeup", (PyCFunction)_asyncio_Task__wakeup, METH_FASTCALL, _asyncio_Task__wakeup__doc__}, + {"_wakeup", (PyCFunction)_asyncio_Task__wakeup, METH_FASTCALL|METH_KEYWORDS, _asyncio_Task__wakeup__doc__}, static PyObject * _asyncio_Task__wakeup_impl(TaskObj *self, PyObject *fut); @@ -517,4 +517,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=07a15bbb28d03edc input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f3b6ace6ef0741b6 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_bz2module.c.h --- a/Modules/clinic/_bz2module.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_bz2module.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -115,7 +115,7 @@ PyDoc_STRVAR(_bz2_BZ2Decompressor_decomp "the unused_data attribute."); #define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \ - {"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_FASTCALL, _bz2_BZ2Decompressor_decompress__doc__}, + {"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_FASTCALL|METH_KEYWORDS, _bz2_BZ2Decompressor_decompress__doc__}, static PyObject * _bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data, @@ -174,4 +174,4 @@ static int exit: return return_value; } -/*[clinic end generated code: output=0e97a1d716b35a14 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=835673574cf12cc4 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_codecsmodule.c.h --- a/Modules/clinic/_codecsmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_codecsmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -55,7 +55,7 @@ PyDoc_STRVAR(_codecs_encode__doc__, "codecs.register_error that can handle ValueErrors."); #define _CODECS_ENCODE_METHODDEF \ - {"encode", (PyCFunction)_codecs_encode, METH_FASTCALL, _codecs_encode__doc__}, + {"encode", (PyCFunction)_codecs_encode, METH_FASTCALL|METH_KEYWORDS, _codecs_encode__doc__}, static PyObject * _codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding, @@ -94,7 +94,7 @@ PyDoc_STRVAR(_codecs_decode__doc__, "codecs.register_error that can handle ValueErrors."); #define _CODECS_DECODE_METHODDEF \ - {"decode", (PyCFunction)_codecs_decode, METH_FASTCALL, _codecs_decode__doc__}, + {"decode", (PyCFunction)_codecs_decode, METH_FASTCALL|METH_KEYWORDS, _codecs_decode__doc__}, static PyObject * _codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding, @@ -160,7 +160,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_escape_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_escape_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -170,10 +170,6 @@ static PyObject * &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("escape_decode", kwnames)) { - goto exit; - } return_value = _codecs_escape_decode_impl(module, &data, errors); exit: @@ -198,7 +194,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_escape_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_escape_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *data; @@ -208,10 +204,6 @@ static PyObject * &PyBytes_Type, &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("escape_encode", kwnames)) { - goto exit; - } return_value = _codecs_escape_encode_impl(module, data, errors); exit: @@ -231,7 +223,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_unicode_internal_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_unicode_internal_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -241,10 +233,6 @@ static PyObject * &obj, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("unicode_internal_decode", kwnames)) { - goto exit; - } return_value = _codecs_unicode_internal_decode_impl(module, obj, errors); exit: @@ -264,7 +252,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_7_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_7_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -275,10 +263,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_7_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_7_decode_impl(module, &data, errors, final); exit: @@ -303,7 +287,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_8_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_8_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -314,10 +298,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_8_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_8_decode_impl(module, &data, errors, final); exit: @@ -342,7 +322,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_16_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -353,10 +333,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_decode_impl(module, &data, errors, final); exit: @@ -381,7 +357,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_16_le_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_le_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -392,10 +368,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_le_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_le_decode_impl(module, &data, errors, final); exit: @@ -420,7 +392,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_16_be_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_be_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -431,10 +403,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_be_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_be_decode_impl(module, &data, errors, final); exit: @@ -460,7 +428,7 @@ static PyObject * const char *errors, int byteorder, int final); static PyObject * -_codecs_utf_16_ex_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_ex_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -472,10 +440,6 @@ static PyObject * &data, &errors, &byteorder, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_ex_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_ex_decode_impl(module, &data, errors, byteorder, final); exit: @@ -500,7 +464,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_32_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -511,10 +475,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_decode_impl(module, &data, errors, final); exit: @@ -539,7 +499,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_32_le_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_le_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -550,10 +510,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_le_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_le_decode_impl(module, &data, errors, final); exit: @@ -578,7 +534,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_utf_32_be_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_be_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -589,10 +545,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_be_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_be_decode_impl(module, &data, errors, final); exit: @@ -618,7 +570,7 @@ static PyObject * const char *errors, int byteorder, int final); static PyObject * -_codecs_utf_32_ex_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_ex_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -630,10 +582,6 @@ static PyObject * &data, &errors, &byteorder, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_ex_decode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_ex_decode_impl(module, &data, errors, byteorder, final); exit: @@ -658,7 +606,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_unicode_escape_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_unicode_escape_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -668,10 +616,6 @@ static PyObject * &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("unicode_escape_decode", kwnames)) { - goto exit; - } return_value = _codecs_unicode_escape_decode_impl(module, &data, errors); exit: @@ -696,7 +640,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_raw_unicode_escape_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_raw_unicode_escape_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -706,10 +650,6 @@ static PyObject * &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("raw_unicode_escape_decode", kwnames)) { - goto exit; - } return_value = _codecs_raw_unicode_escape_decode_impl(module, &data, errors); exit: @@ -734,7 +674,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_latin_1_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_latin_1_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -744,10 +684,6 @@ static PyObject * &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("latin_1_decode", kwnames)) { - goto exit; - } return_value = _codecs_latin_1_decode_impl(module, &data, errors); exit: @@ -772,7 +708,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_ascii_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_ascii_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -782,10 +718,6 @@ static PyObject * &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ascii_decode", kwnames)) { - goto exit; - } return_value = _codecs_ascii_decode_impl(module, &data, errors); exit: @@ -810,7 +742,7 @@ static PyObject * const char *errors, PyObject *mapping); static PyObject * -_codecs_charmap_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_charmap_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -821,10 +753,6 @@ static PyObject * &data, &errors, &mapping)) { goto exit; } - - if (!_PyArg_NoStackKeywords("charmap_decode", kwnames)) { - goto exit; - } return_value = _codecs_charmap_decode_impl(module, &data, errors, mapping); exit: @@ -851,7 +779,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_mbcs_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_mbcs_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -862,10 +790,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("mbcs_decode", kwnames)) { - goto exit; - } return_value = _codecs_mbcs_decode_impl(module, &data, errors, final); exit: @@ -894,7 +818,7 @@ static PyObject * const char *errors, int final); static PyObject * -_codecs_oem_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_oem_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -905,10 +829,6 @@ static PyObject * &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("oem_decode", kwnames)) { - goto exit; - } return_value = _codecs_oem_decode_impl(module, &data, errors, final); exit: @@ -937,7 +857,7 @@ static PyObject * Py_buffer *data, const char *errors, int final); static PyObject * -_codecs_code_page_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_code_page_decode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int codepage; @@ -949,10 +869,6 @@ static PyObject * &codepage, &data, &errors, &final)) { goto exit; } - - if (!_PyArg_NoStackKeywords("code_page_decode", kwnames)) { - goto exit; - } return_value = _codecs_code_page_decode_impl(module, codepage, &data, errors, final); exit: @@ -979,7 +895,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_readbuffer_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_readbuffer_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -989,10 +905,6 @@ static PyObject * &data, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readbuffer_encode", kwnames)) { - goto exit; - } return_value = _codecs_readbuffer_encode_impl(module, &data, errors); exit: @@ -1017,7 +929,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_unicode_internal_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_unicode_internal_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -1027,10 +939,6 @@ static PyObject * &obj, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("unicode_internal_encode", kwnames)) { - goto exit; - } return_value = _codecs_unicode_internal_encode_impl(module, obj, errors); exit: @@ -1050,7 +958,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_utf_7_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_7_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1060,10 +968,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_7_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_7_encode_impl(module, str, errors); exit: @@ -1083,7 +987,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_utf_8_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_8_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1093,10 +997,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_8_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_8_encode_impl(module, str, errors); exit: @@ -1116,7 +1016,7 @@ static PyObject * const char *errors, int byteorder); static PyObject * -_codecs_utf_16_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1127,10 +1027,6 @@ static PyObject * &str, &errors, &byteorder)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_encode_impl(module, str, errors, byteorder); exit: @@ -1150,7 +1046,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_utf_16_le_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_le_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1160,10 +1056,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_le_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_le_encode_impl(module, str, errors); exit: @@ -1183,7 +1075,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_utf_16_be_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_16_be_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1193,10 +1085,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_16_be_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_16_be_encode_impl(module, str, errors); exit: @@ -1216,7 +1104,7 @@ static PyObject * const char *errors, int byteorder); static PyObject * -_codecs_utf_32_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1227,10 +1115,6 @@ static PyObject * &str, &errors, &byteorder)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_encode_impl(module, str, errors, byteorder); exit: @@ -1250,7 +1134,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_utf_32_le_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_le_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1260,10 +1144,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_le_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_le_encode_impl(module, str, errors); exit: @@ -1283,7 +1163,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_utf_32_be_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_utf_32_be_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1293,10 +1173,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("utf_32_be_encode", kwnames)) { - goto exit; - } return_value = _codecs_utf_32_be_encode_impl(module, str, errors); exit: @@ -1316,7 +1192,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_unicode_escape_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_unicode_escape_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1326,10 +1202,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("unicode_escape_encode", kwnames)) { - goto exit; - } return_value = _codecs_unicode_escape_encode_impl(module, str, errors); exit: @@ -1349,7 +1221,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_raw_unicode_escape_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_raw_unicode_escape_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1359,10 +1231,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("raw_unicode_escape_encode", kwnames)) { - goto exit; - } return_value = _codecs_raw_unicode_escape_encode_impl(module, str, errors); exit: @@ -1382,7 +1250,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_latin_1_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_latin_1_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1392,10 +1260,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("latin_1_encode", kwnames)) { - goto exit; - } return_value = _codecs_latin_1_encode_impl(module, str, errors); exit: @@ -1415,7 +1279,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_ascii_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_ascii_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1425,10 +1289,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ascii_encode", kwnames)) { - goto exit; - } return_value = _codecs_ascii_encode_impl(module, str, errors); exit: @@ -1448,7 +1308,7 @@ static PyObject * const char *errors, PyObject *mapping); static PyObject * -_codecs_charmap_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_charmap_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1459,10 +1319,6 @@ static PyObject * &str, &errors, &mapping)) { goto exit; } - - if (!_PyArg_NoStackKeywords("charmap_encode", kwnames)) { - goto exit; - } return_value = _codecs_charmap_encode_impl(module, str, errors, mapping); exit: @@ -1509,7 +1365,7 @@ static PyObject * _codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors); static PyObject * -_codecs_mbcs_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_mbcs_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1519,10 +1375,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("mbcs_encode", kwnames)) { - goto exit; - } return_value = _codecs_mbcs_encode_impl(module, str, errors); exit: @@ -1545,7 +1397,7 @@ static PyObject * _codecs_oem_encode_impl(PyObject *module, PyObject *str, const char *errors); static PyObject * -_codecs_oem_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_oem_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *str; @@ -1555,10 +1407,6 @@ static PyObject * &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("oem_encode", kwnames)) { - goto exit; - } return_value = _codecs_oem_encode_impl(module, str, errors); exit: @@ -1582,7 +1430,7 @@ static PyObject * const char *errors); static PyObject * -_codecs_code_page_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_code_page_encode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int code_page; @@ -1593,10 +1441,6 @@ static PyObject * &code_page, &str, &errors)) { goto exit; } - - if (!_PyArg_NoStackKeywords("code_page_encode", kwnames)) { - goto exit; - } return_value = _codecs_code_page_encode_impl(module, code_page, str, errors); exit: @@ -1623,7 +1467,7 @@ static PyObject * PyObject *handler); static PyObject * -_codecs_register_error(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_codecs_register_error(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *errors; @@ -1633,10 +1477,6 @@ static PyObject * &errors, &handler)) { goto exit; } - - if (!_PyArg_NoStackKeywords("register_error", kwnames)) { - goto exit; - } return_value = _codecs_register_error_impl(module, errors, handler); exit: @@ -1696,4 +1536,4 @@ exit: #ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF #define _CODECS_CODE_PAGE_ENCODE_METHODDEF #endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */ -/*[clinic end generated code: output=36fb42f450a3b4dc input=a9049054013a1b77]*/ +/*[clinic end generated code: output=894910ed4900eeae input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_cryptmodule.c.h --- a/Modules/clinic/_cryptmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_cryptmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -20,7 +20,7 @@ static PyObject * crypt_crypt_impl(PyObject *module, const char *word, const char *salt); static PyObject * -crypt_crypt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +crypt_crypt(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *word; @@ -30,13 +30,9 @@ crypt_crypt(PyObject *module, PyObject * &word, &salt)) { goto exit; } - - if (!_PyArg_NoStackKeywords("crypt", kwnames)) { - goto exit; - } return_value = crypt_crypt_impl(module, word, salt); exit: return return_value; } -/*[clinic end generated code: output=3fd5d3625a6f32fe input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f5a6aff28d43154f input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_datetimemodule.c.h --- a/Modules/clinic/_datetimemodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_datetimemodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -14,7 +14,7 @@ PyDoc_STRVAR(datetime_datetime_now__doc_ "If no tz is specified, uses local timezone."); #define DATETIME_DATETIME_NOW_METHODDEF \ - {"now", (PyCFunction)datetime_datetime_now, METH_FASTCALL|METH_CLASS, datetime_datetime_now__doc__}, + {"now", (PyCFunction)datetime_datetime_now, METH_FASTCALL|METH_KEYWORDS|METH_CLASS, datetime_datetime_now__doc__}, static PyObject * datetime_datetime_now_impl(PyTypeObject *type, PyObject *tz); @@ -36,4 +36,4 @@ datetime_datetime_now(PyTypeObject *type exit: return return_value; } -/*[clinic end generated code: output=ff78f2f51687e9a9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=93cb014e47dae4b3 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_dbmmodule.c.h --- a/Modules/clinic/_dbmmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_dbmmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -52,7 +52,7 @@ static PyObject * Py_ssize_clean_t key_length, PyObject *default_value); static PyObject * -_dbm_dbm_get(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_dbm_dbm_get(dbmobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *key; @@ -63,10 +63,6 @@ static PyObject * &key, &key_length, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("get", kwnames)) { - goto exit; - } return_value = _dbm_dbm_get_impl(self, key, key_length, default_value); exit: @@ -90,7 +86,7 @@ static PyObject * PyObject *default_value); static PyObject * -_dbm_dbm_setdefault(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_dbm_dbm_setdefault(dbmobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *key; @@ -101,10 +97,6 @@ static PyObject * &key, &key_length, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setdefault", kwnames)) { - goto exit; - } return_value = _dbm_dbm_setdefault_impl(self, key, key_length, default_value); exit: @@ -133,7 +125,7 @@ dbmopen_impl(PyObject *module, const cha int mode); static PyObject * -dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *filename; @@ -144,13 +136,9 @@ dbmopen(PyObject *module, PyObject **arg &filename, &flags, &mode)) { goto exit; } - - if (!_PyArg_NoStackKeywords("open", kwnames)) { - goto exit; - } return_value = dbmopen_impl(module, filename, flags, mode); exit: return return_value; } -/*[clinic end generated code: output=4fdb7be8bd03cbce input=a9049054013a1b77]*/ +/*[clinic end generated code: output=627d28ce1f3188dc input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_elementtree.c.h --- a/Modules/clinic/_elementtree.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_elementtree.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -136,7 +136,7 @@ PyDoc_STRVAR(_elementtree_Element_find__ "\n"); #define _ELEMENTTREE_ELEMENT_FIND_METHODDEF \ - {"find", (PyCFunction)_elementtree_Element_find, METH_FASTCALL, _elementtree_Element_find__doc__}, + {"find", (PyCFunction)_elementtree_Element_find, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_find__doc__}, static PyObject * _elementtree_Element_find_impl(ElementObject *self, PyObject *path, @@ -167,7 +167,7 @@ PyDoc_STRVAR(_elementtree_Element_findte "\n"); #define _ELEMENTTREE_ELEMENT_FINDTEXT_METHODDEF \ - {"findtext", (PyCFunction)_elementtree_Element_findtext, METH_FASTCALL, _elementtree_Element_findtext__doc__}, + {"findtext", (PyCFunction)_elementtree_Element_findtext, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_findtext__doc__}, static PyObject * _elementtree_Element_findtext_impl(ElementObject *self, PyObject *path, @@ -200,7 +200,7 @@ PyDoc_STRVAR(_elementtree_Element_findal "\n"); #define _ELEMENTTREE_ELEMENT_FINDALL_METHODDEF \ - {"findall", (PyCFunction)_elementtree_Element_findall, METH_FASTCALL, _elementtree_Element_findall__doc__}, + {"findall", (PyCFunction)_elementtree_Element_findall, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_findall__doc__}, static PyObject * _elementtree_Element_findall_impl(ElementObject *self, PyObject *path, @@ -231,7 +231,7 @@ PyDoc_STRVAR(_elementtree_Element_iterfi "\n"); #define _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF \ - {"iterfind", (PyCFunction)_elementtree_Element_iterfind, METH_FASTCALL, _elementtree_Element_iterfind__doc__}, + {"iterfind", (PyCFunction)_elementtree_Element_iterfind, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_iterfind__doc__}, static PyObject * _elementtree_Element_iterfind_impl(ElementObject *self, PyObject *path, @@ -262,7 +262,7 @@ PyDoc_STRVAR(_elementtree_Element_get__d "\n"); #define _ELEMENTTREE_ELEMENT_GET_METHODDEF \ - {"get", (PyCFunction)_elementtree_Element_get, METH_FASTCALL, _elementtree_Element_get__doc__}, + {"get", (PyCFunction)_elementtree_Element_get, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_get__doc__}, static PyObject * _elementtree_Element_get_impl(ElementObject *self, PyObject *key, @@ -310,7 +310,7 @@ PyDoc_STRVAR(_elementtree_Element_iter__ "\n"); #define _ELEMENTTREE_ELEMENT_ITER_METHODDEF \ - {"iter", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL, _elementtree_Element_iter__doc__}, + {"iter", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_iter__doc__}, static PyObject * _elementtree_Element_iter_impl(ElementObject *self, PyObject *tag); @@ -363,7 +363,7 @@ static PyObject * PyObject *subelement); static PyObject * -_elementtree_Element_insert(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_elementtree_Element_insert(ElementObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t index; @@ -373,10 +373,6 @@ static PyObject * &index, &Element_Type, &subelement)) { goto exit; } - - if (!_PyArg_NoStackKeywords("insert", kwnames)) { - goto exit; - } return_value = _elementtree_Element_insert_impl(self, index, subelement); exit: @@ -430,7 +426,7 @@ static PyObject * PyObject *attrib); static PyObject * -_elementtree_Element_makeelement(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_elementtree_Element_makeelement(ElementObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *tag; @@ -441,10 +437,6 @@ static PyObject * &tag, &attrib)) { goto exit; } - - if (!_PyArg_NoStackKeywords("makeelement", kwnames)) { - goto exit; - } return_value = _elementtree_Element_makeelement_impl(self, tag, attrib); exit: @@ -490,7 +482,7 @@ static PyObject * PyObject *value); static PyObject * -_elementtree_Element_set(ElementObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_elementtree_Element_set(ElementObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *key; @@ -501,10 +493,6 @@ static PyObject * &key, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("set", kwnames)) { - goto exit; - } return_value = _elementtree_Element_set_impl(self, key, value); exit: @@ -579,7 +567,7 @@ static PyObject * PyObject *attrs); static PyObject * -_elementtree_TreeBuilder_start(TreeBuilderObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_elementtree_TreeBuilder_start(TreeBuilderObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *tag; @@ -590,10 +578,6 @@ static PyObject * &tag, &attrs)) { goto exit; } - - if (!_PyArg_NoStackKeywords("start", kwnames)) { - goto exit; - } return_value = _elementtree_TreeBuilder_start_impl(self, tag, attrs); exit: @@ -670,7 +654,7 @@ static PyObject * PyObject *pubid, PyObject *system); static PyObject * -_elementtree_XMLParser_doctype(XMLParserObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_elementtree_XMLParser_doctype(XMLParserObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *name; @@ -682,10 +666,6 @@ static PyObject * &name, &pubid, &system)) { goto exit; } - - if (!_PyArg_NoStackKeywords("doctype", kwnames)) { - goto exit; - } return_value = _elementtree_XMLParser_doctype_impl(self, name, pubid, system); exit: @@ -706,7 +686,7 @@ static PyObject * PyObject *events_to_report); static PyObject * -_elementtree_XMLParser__setevents(XMLParserObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_elementtree_XMLParser__setevents(XMLParserObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *events_queue; @@ -717,13 +697,9 @@ static PyObject * &events_queue, &events_to_report)) { goto exit; } - - if (!_PyArg_NoStackKeywords("_setevents", kwnames)) { - goto exit; - } return_value = _elementtree_XMLParser__setevents_impl(self, events_queue, events_to_report); exit: return return_value; } -/*[clinic end generated code: output=b69fa98c40917f58 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=834a6b1d4032cea2 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_gdbmmodule.c.h --- a/Modules/clinic/_gdbmmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_gdbmmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -15,7 +15,7 @@ static PyObject * _gdbm_gdbm_get_impl(dbmobject *self, PyObject *key, PyObject *default_value); static PyObject * -_gdbm_gdbm_get(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_gdbm_gdbm_get(dbmobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *key; @@ -26,10 +26,6 @@ static PyObject * &key, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("get", kwnames)) { - goto exit; - } return_value = _gdbm_gdbm_get_impl(self, key, default_value); exit: @@ -50,7 +46,7 @@ static PyObject * PyObject *default_value); static PyObject * -_gdbm_gdbm_setdefault(dbmobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_gdbm_gdbm_setdefault(dbmobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *key; @@ -61,10 +57,6 @@ static PyObject * &key, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setdefault", kwnames)) { - goto exit; - } return_value = _gdbm_gdbm_setdefault_impl(self, key, default_value); exit: @@ -245,7 +237,7 @@ static PyObject * dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode); static PyObject * -dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *name; @@ -256,13 +248,9 @@ dbmopen(PyObject *module, PyObject **arg &name, &flags, &mode)) { goto exit; } - - if (!_PyArg_NoStackKeywords("open", kwnames)) { - goto exit; - } return_value = dbmopen_impl(module, name, flags, mode); exit: return return_value; } -/*[clinic end generated code: output=03a3a63a814ada93 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9c72502b30bb7485 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_hashopenssl.c.h --- a/Modules/clinic/_hashopenssl.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_hashopenssl.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -12,7 +12,7 @@ PyDoc_STRVAR(_hashlib_scrypt__doc__, "scrypt password-based key derivation function."); #define _HASHLIB_SCRYPT_METHODDEF \ - {"scrypt", (PyCFunction)_hashlib_scrypt, METH_FASTCALL, _hashlib_scrypt__doc__}, + {"scrypt", (PyCFunction)_hashlib_scrypt, METH_FASTCALL|METH_KEYWORDS, _hashlib_scrypt__doc__}, static PyObject * _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt, @@ -57,4 +57,4 @@ exit: #ifndef _HASHLIB_SCRYPT_METHODDEF #define _HASHLIB_SCRYPT_METHODDEF #endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */ -/*[clinic end generated code: output=71f1e033efe4ac9a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=eda2a998d5b29030 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_lzmamodule.c.h --- a/Modules/clinic/_lzmamodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_lzmamodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -81,7 +81,7 @@ PyDoc_STRVAR(_lzma_LZMADecompressor_deco "the unused_data attribute."); #define _LZMA_LZMADECOMPRESSOR_DECOMPRESS_METHODDEF \ - {"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_FASTCALL, _lzma_LZMADecompressor_decompress__doc__}, + {"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_FASTCALL|METH_KEYWORDS, _lzma_LZMADecompressor_decompress__doc__}, static PyObject * _lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data, @@ -236,7 +236,7 @@ static PyObject * Py_buffer *encoded_props); static PyObject * -_lzma__decode_filter_properties(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_lzma__decode_filter_properties(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; lzma_vli filter_id; @@ -246,10 +246,6 @@ static PyObject * lzma_vli_converter, &filter_id, &encoded_props)) { goto exit; } - - if (!_PyArg_NoStackKeywords("_decode_filter_properties", kwnames)) { - goto exit; - } return_value = _lzma__decode_filter_properties_impl(module, filter_id, &encoded_props); exit: @@ -260,4 +256,4 @@ exit: return return_value; } -/*[clinic end generated code: output=5f7a915fb7e41453 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d4e3802d0dea9af3 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_opcode.c.h --- a/Modules/clinic/_opcode.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_opcode.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -15,7 +15,7 @@ static int _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg); static PyObject * -_opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int opcode; @@ -26,10 +26,6 @@ static PyObject * &opcode, &oparg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("stack_effect", kwnames)) { - goto exit; - } _return_value = _opcode_stack_effect_impl(module, opcode, oparg); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -39,4 +35,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=62858005ac85baa9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=616105b05b55eb45 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_operator.c.h --- a/Modules/clinic/_operator.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_operator.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -43,7 +43,7 @@ static PyObject * _operator_add_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_add(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_add(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -54,10 +54,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("add", kwnames)) { - goto exit; - } return_value = _operator_add_impl(module, a, b); exit: @@ -77,7 +73,7 @@ static PyObject * _operator_sub_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_sub(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_sub(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -88,10 +84,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("sub", kwnames)) { - goto exit; - } return_value = _operator_sub_impl(module, a, b); exit: @@ -111,7 +103,7 @@ static PyObject * _operator_mul_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_mul(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_mul(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -122,10 +114,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("mul", kwnames)) { - goto exit; - } return_value = _operator_mul_impl(module, a, b); exit: @@ -145,7 +133,7 @@ static PyObject * _operator_matmul_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_matmul(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_matmul(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -156,10 +144,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("matmul", kwnames)) { - goto exit; - } return_value = _operator_matmul_impl(module, a, b); exit: @@ -179,7 +163,7 @@ static PyObject * _operator_floordiv_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_floordiv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_floordiv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -190,10 +174,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("floordiv", kwnames)) { - goto exit; - } return_value = _operator_floordiv_impl(module, a, b); exit: @@ -213,7 +193,7 @@ static PyObject * _operator_truediv_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_truediv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_truediv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -224,10 +204,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("truediv", kwnames)) { - goto exit; - } return_value = _operator_truediv_impl(module, a, b); exit: @@ -247,7 +223,7 @@ static PyObject * _operator_mod_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_mod(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_mod(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -258,10 +234,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("mod", kwnames)) { - goto exit; - } return_value = _operator_mod_impl(module, a, b); exit: @@ -326,7 +298,7 @@ static PyObject * _operator_lshift_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_lshift(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_lshift(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -337,10 +309,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lshift", kwnames)) { - goto exit; - } return_value = _operator_lshift_impl(module, a, b); exit: @@ -360,7 +328,7 @@ static PyObject * _operator_rshift_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_rshift(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_rshift(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -371,10 +339,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rshift", kwnames)) { - goto exit; - } return_value = _operator_rshift_impl(module, a, b); exit: @@ -422,7 +386,7 @@ static PyObject * _operator_and__impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_and_(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_and_(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -433,10 +397,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("and_", kwnames)) { - goto exit; - } return_value = _operator_and__impl(module, a, b); exit: @@ -456,7 +416,7 @@ static PyObject * _operator_xor_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_xor(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_xor(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -467,10 +427,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("xor", kwnames)) { - goto exit; - } return_value = _operator_xor_impl(module, a, b); exit: @@ -490,7 +446,7 @@ static PyObject * _operator_or__impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_or_(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_or_(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -501,10 +457,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("or_", kwnames)) { - goto exit; - } return_value = _operator_or__impl(module, a, b); exit: @@ -524,7 +476,7 @@ static PyObject * _operator_iadd_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_iadd(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_iadd(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -535,10 +487,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("iadd", kwnames)) { - goto exit; - } return_value = _operator_iadd_impl(module, a, b); exit: @@ -558,7 +506,7 @@ static PyObject * _operator_isub_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_isub(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_isub(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -569,10 +517,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("isub", kwnames)) { - goto exit; - } return_value = _operator_isub_impl(module, a, b); exit: @@ -592,7 +536,7 @@ static PyObject * _operator_imul_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_imul(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_imul(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -603,10 +547,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("imul", kwnames)) { - goto exit; - } return_value = _operator_imul_impl(module, a, b); exit: @@ -626,7 +566,7 @@ static PyObject * _operator_imatmul_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_imatmul(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_imatmul(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -637,10 +577,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("imatmul", kwnames)) { - goto exit; - } return_value = _operator_imatmul_impl(module, a, b); exit: @@ -660,7 +596,7 @@ static PyObject * _operator_ifloordiv_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ifloordiv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ifloordiv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -671,10 +607,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ifloordiv", kwnames)) { - goto exit; - } return_value = _operator_ifloordiv_impl(module, a, b); exit: @@ -694,7 +626,7 @@ static PyObject * _operator_itruediv_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_itruediv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_itruediv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -705,10 +637,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("itruediv", kwnames)) { - goto exit; - } return_value = _operator_itruediv_impl(module, a, b); exit: @@ -728,7 +656,7 @@ static PyObject * _operator_imod_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_imod(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_imod(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -739,10 +667,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("imod", kwnames)) { - goto exit; - } return_value = _operator_imod_impl(module, a, b); exit: @@ -762,7 +686,7 @@ static PyObject * _operator_ilshift_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ilshift(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ilshift(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -773,10 +697,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ilshift", kwnames)) { - goto exit; - } return_value = _operator_ilshift_impl(module, a, b); exit: @@ -796,7 +716,7 @@ static PyObject * _operator_irshift_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_irshift(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_irshift(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -807,10 +727,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("irshift", kwnames)) { - goto exit; - } return_value = _operator_irshift_impl(module, a, b); exit: @@ -830,7 +746,7 @@ static PyObject * _operator_iand_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_iand(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_iand(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -841,10 +757,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("iand", kwnames)) { - goto exit; - } return_value = _operator_iand_impl(module, a, b); exit: @@ -864,7 +776,7 @@ static PyObject * _operator_ixor_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ixor(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ixor(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -875,10 +787,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ixor", kwnames)) { - goto exit; - } return_value = _operator_ixor_impl(module, a, b); exit: @@ -898,7 +806,7 @@ static PyObject * _operator_ior_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ior(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ior(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -909,10 +817,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ior", kwnames)) { - goto exit; - } return_value = _operator_ior_impl(module, a, b); exit: @@ -932,7 +836,7 @@ static PyObject * _operator_concat_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_concat(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_concat(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -943,10 +847,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("concat", kwnames)) { - goto exit; - } return_value = _operator_concat_impl(module, a, b); exit: @@ -966,7 +866,7 @@ static PyObject * _operator_iconcat_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_iconcat(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_iconcat(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -977,10 +877,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("iconcat", kwnames)) { - goto exit; - } return_value = _operator_iconcat_impl(module, a, b); exit: @@ -1000,7 +896,7 @@ static int _operator_contains_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_contains(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_contains(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1012,10 +908,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("contains", kwnames)) { - goto exit; - } _return_value = _operator_contains_impl(module, a, b); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -1039,7 +931,7 @@ static Py_ssize_t _operator_indexOf_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_indexOf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_indexOf(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1051,10 +943,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("indexOf", kwnames)) { - goto exit; - } _return_value = _operator_indexOf_impl(module, a, b); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -1078,7 +966,7 @@ static Py_ssize_t _operator_countOf_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_countOf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_countOf(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1090,10 +978,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("countOf", kwnames)) { - goto exit; - } _return_value = _operator_countOf_impl(module, a, b); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -1117,7 +1001,7 @@ static PyObject * _operator_getitem_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_getitem(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_getitem(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1128,10 +1012,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("getitem", kwnames)) { - goto exit; - } return_value = _operator_getitem_impl(module, a, b); exit: @@ -1152,7 +1032,7 @@ static PyObject * PyObject *c); static PyObject * -_operator_setitem(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_setitem(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1164,10 +1044,6 @@ static PyObject * &a, &b, &c)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setitem", kwnames)) { - goto exit; - } return_value = _operator_setitem_impl(module, a, b, c); exit: @@ -1187,7 +1063,7 @@ static PyObject * _operator_delitem_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_delitem(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_delitem(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1198,10 +1074,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("delitem", kwnames)) { - goto exit; - } return_value = _operator_delitem_impl(module, a, b); exit: @@ -1221,7 +1093,7 @@ static PyObject * _operator_eq_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_eq(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_eq(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1232,10 +1104,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("eq", kwnames)) { - goto exit; - } return_value = _operator_eq_impl(module, a, b); exit: @@ -1255,7 +1123,7 @@ static PyObject * _operator_ne_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ne(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ne(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1266,10 +1134,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ne", kwnames)) { - goto exit; - } return_value = _operator_ne_impl(module, a, b); exit: @@ -1289,7 +1153,7 @@ static PyObject * _operator_lt_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_lt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_lt(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1300,10 +1164,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lt", kwnames)) { - goto exit; - } return_value = _operator_lt_impl(module, a, b); exit: @@ -1323,7 +1183,7 @@ static PyObject * _operator_le_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_le(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_le(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1334,10 +1194,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("le", kwnames)) { - goto exit; - } return_value = _operator_le_impl(module, a, b); exit: @@ -1357,7 +1213,7 @@ static PyObject * _operator_gt_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_gt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_gt(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1368,10 +1224,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("gt", kwnames)) { - goto exit; - } return_value = _operator_gt_impl(module, a, b); exit: @@ -1391,7 +1243,7 @@ static PyObject * _operator_ge_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ge(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ge(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1402,10 +1254,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ge", kwnames)) { - goto exit; - } return_value = _operator_ge_impl(module, a, b); exit: @@ -1425,7 +1273,7 @@ static PyObject * _operator_pow_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_pow(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_pow(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1436,10 +1284,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pow", kwnames)) { - goto exit; - } return_value = _operator_pow_impl(module, a, b); exit: @@ -1459,7 +1303,7 @@ static PyObject * _operator_ipow_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_ipow(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_ipow(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1470,10 +1314,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ipow", kwnames)) { - goto exit; - } return_value = _operator_ipow_impl(module, a, b); exit: @@ -1502,7 +1342,7 @@ static PyObject * _operator_is__impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_is_(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_is_(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1513,10 +1353,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("is_", kwnames)) { - goto exit; - } return_value = _operator_is__impl(module, a, b); exit: @@ -1536,7 +1372,7 @@ static PyObject * _operator_is_not_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator_is_not(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_is_not(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1547,10 +1383,6 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("is_not", kwnames)) { - goto exit; - } return_value = _operator_is_not_impl(module, a, b); exit: @@ -1577,7 +1409,7 @@ static Py_ssize_t Py_ssize_t default_value); static PyObject * -_operator_length_hint(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator_length_hint(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -1588,10 +1420,6 @@ static PyObject * &obj, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("length_hint", kwnames)) { - goto exit; - } _return_value = _operator_length_hint_impl(module, obj, default_value); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -1625,7 +1453,7 @@ static PyObject * _operator__compare_digest_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -_operator__compare_digest(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_operator__compare_digest(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -1636,13 +1464,9 @@ static PyObject * &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("_compare_digest", kwnames)) { - goto exit; - } return_value = _operator__compare_digest_impl(module, a, b); exit: return return_value; } -/*[clinic end generated code: output=c030b6747fddd9c6 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7c42956af269cb21 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_pickle.c.h --- a/Modules/clinic/_pickle.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_pickle.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -207,7 +207,7 @@ static PyObject * PyObject *global_name); static PyObject * -_pickle_Unpickler_find_class(UnpicklerObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_pickle_Unpickler_find_class(UnpicklerObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *module_name; @@ -218,10 +218,6 @@ static PyObject * &module_name, &global_name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("find_class", kwnames)) { - goto exit; - } return_value = _pickle_Unpickler_find_class_impl(self, module_name, global_name); exit: @@ -388,7 +384,7 @@ PyDoc_STRVAR(_pickle_dump__doc__, "2, so that the pickle data stream is readable with Python 2."); #define _PICKLE_DUMP_METHODDEF \ - {"dump", (PyCFunction)_pickle_dump, METH_FASTCALL, _pickle_dump__doc__}, + {"dump", (PyCFunction)_pickle_dump, METH_FASTCALL|METH_KEYWORDS, _pickle_dump__doc__}, static PyObject * _pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file, @@ -434,7 +430,7 @@ PyDoc_STRVAR(_pickle_dumps__doc__, "Python 2, so that the pickle data stream is readable with Python 2."); #define _PICKLE_DUMPS_METHODDEF \ - {"dumps", (PyCFunction)_pickle_dumps, METH_FASTCALL, _pickle_dumps__doc__}, + {"dumps", (PyCFunction)_pickle_dumps, METH_FASTCALL|METH_KEYWORDS, _pickle_dumps__doc__}, static PyObject * _pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol, @@ -490,7 +486,7 @@ PyDoc_STRVAR(_pickle_load__doc__, "string instances as bytes objects."); #define _PICKLE_LOAD_METHODDEF \ - {"load", (PyCFunction)_pickle_load, METH_FASTCALL, _pickle_load__doc__}, + {"load", (PyCFunction)_pickle_load, METH_FASTCALL|METH_KEYWORDS, _pickle_load__doc__}, static PyObject * _pickle_load_impl(PyObject *module, PyObject *file, int fix_imports, @@ -538,7 +534,7 @@ PyDoc_STRVAR(_pickle_loads__doc__, "string instances as bytes objects."); #define _PICKLE_LOADS_METHODDEF \ - {"loads", (PyCFunction)_pickle_loads, METH_FASTCALL, _pickle_loads__doc__}, + {"loads", (PyCFunction)_pickle_loads, METH_FASTCALL|METH_KEYWORDS, _pickle_loads__doc__}, static PyObject * _pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports, @@ -564,4 +560,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=b921d325b2f7a096 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a6243aaa6ea98732 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_sre.c.h --- a/Modules/clinic/_sre.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_sre.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -41,7 +41,7 @@ static int _sre_getlower_impl(PyObject *module, int character, int flags); static PyObject * -_sre_getlower(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_sre_getlower(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int character; @@ -52,10 +52,6 @@ static PyObject * &character, &flags)) { goto exit; } - - if (!_PyArg_NoStackKeywords("getlower", kwnames)) { - goto exit; - } _return_value = _sre_getlower_impl(module, character, flags); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -73,7 +69,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_match__doc "Matches zero or more characters at the beginning of the string."); #define _SRE_SRE_PATTERN_MATCH_METHODDEF \ - {"match", (PyCFunction)_sre_SRE_Pattern_match, METH_FASTCALL, _sre_SRE_Pattern_match__doc__}, + {"match", (PyCFunction)_sre_SRE_Pattern_match, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_match__doc__}, static PyObject * _sre_SRE_Pattern_match_impl(PatternObject *self, PyObject *string, @@ -106,7 +102,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_fullmatch_ "Matches against all of the string"); #define _SRE_SRE_PATTERN_FULLMATCH_METHODDEF \ - {"fullmatch", (PyCFunction)_sre_SRE_Pattern_fullmatch, METH_FASTCALL, _sre_SRE_Pattern_fullmatch__doc__}, + {"fullmatch", (PyCFunction)_sre_SRE_Pattern_fullmatch, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_fullmatch__doc__}, static PyObject * _sre_SRE_Pattern_fullmatch_impl(PatternObject *self, PyObject *string, @@ -141,7 +137,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_search__do "Return None if no position in the string matches."); #define _SRE_SRE_PATTERN_SEARCH_METHODDEF \ - {"search", (PyCFunction)_sre_SRE_Pattern_search, METH_FASTCALL, _sre_SRE_Pattern_search__doc__}, + {"search", (PyCFunction)_sre_SRE_Pattern_search, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_search__doc__}, static PyObject * _sre_SRE_Pattern_search_impl(PatternObject *self, PyObject *string, @@ -174,7 +170,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_findall__d "Return a list of all non-overlapping matches of pattern in string."); #define _SRE_SRE_PATTERN_FINDALL_METHODDEF \ - {"findall", (PyCFunction)_sre_SRE_Pattern_findall, METH_FASTCALL, _sre_SRE_Pattern_findall__doc__}, + {"findall", (PyCFunction)_sre_SRE_Pattern_findall, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_findall__doc__}, static PyObject * _sre_SRE_Pattern_findall_impl(PatternObject *self, PyObject *string, @@ -209,7 +205,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_finditer__ "For each match, the iterator returns a match object."); #define _SRE_SRE_PATTERN_FINDITER_METHODDEF \ - {"finditer", (PyCFunction)_sre_SRE_Pattern_finditer, METH_FASTCALL, _sre_SRE_Pattern_finditer__doc__}, + {"finditer", (PyCFunction)_sre_SRE_Pattern_finditer, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_finditer__doc__}, static PyObject * _sre_SRE_Pattern_finditer_impl(PatternObject *self, PyObject *string, @@ -241,7 +237,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_scanner__d "\n"); #define _SRE_SRE_PATTERN_SCANNER_METHODDEF \ - {"scanner", (PyCFunction)_sre_SRE_Pattern_scanner, METH_FASTCALL, _sre_SRE_Pattern_scanner__doc__}, + {"scanner", (PyCFunction)_sre_SRE_Pattern_scanner, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_scanner__doc__}, static PyObject * _sre_SRE_Pattern_scanner_impl(PatternObject *self, PyObject *string, @@ -274,7 +270,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_split__doc "Split string by the occurrences of pattern."); #define _SRE_SRE_PATTERN_SPLIT_METHODDEF \ - {"split", (PyCFunction)_sre_SRE_Pattern_split, METH_FASTCALL, _sre_SRE_Pattern_split__doc__}, + {"split", (PyCFunction)_sre_SRE_Pattern_split, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_split__doc__}, static PyObject * _sre_SRE_Pattern_split_impl(PatternObject *self, PyObject *string, @@ -306,7 +302,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_sub__doc__ "Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl."); #define _SRE_SRE_PATTERN_SUB_METHODDEF \ - {"sub", (PyCFunction)_sre_SRE_Pattern_sub, METH_FASTCALL, _sre_SRE_Pattern_sub__doc__}, + {"sub", (PyCFunction)_sre_SRE_Pattern_sub, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_sub__doc__}, static PyObject * _sre_SRE_Pattern_sub_impl(PatternObject *self, PyObject *repl, @@ -339,7 +335,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_subn__doc_ "Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl."); #define _SRE_SRE_PATTERN_SUBN_METHODDEF \ - {"subn", (PyCFunction)_sre_SRE_Pattern_subn, METH_FASTCALL, _sre_SRE_Pattern_subn__doc__}, + {"subn", (PyCFunction)_sre_SRE_Pattern_subn, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern_subn__doc__}, static PyObject * _sre_SRE_Pattern_subn_impl(PatternObject *self, PyObject *repl, @@ -388,7 +384,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern___deepcopy "\n"); #define _SRE_SRE_PATTERN___DEEPCOPY___METHODDEF \ - {"__deepcopy__", (PyCFunction)_sre_SRE_Pattern___deepcopy__, METH_FASTCALL, _sre_SRE_Pattern___deepcopy____doc__}, + {"__deepcopy__", (PyCFunction)_sre_SRE_Pattern___deepcopy__, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Pattern___deepcopy____doc__}, static PyObject * _sre_SRE_Pattern___deepcopy___impl(PatternObject *self, PyObject *memo); @@ -418,7 +414,7 @@ PyDoc_STRVAR(_sre_compile__doc__, "\n"); #define _SRE_COMPILE_METHODDEF \ - {"compile", (PyCFunction)_sre_compile, METH_FASTCALL, _sre_compile__doc__}, + {"compile", (PyCFunction)_sre_compile, METH_FASTCALL|METH_KEYWORDS, _sre_compile__doc__}, static PyObject * _sre_compile_impl(PyObject *module, PyObject *pattern, int flags, @@ -455,7 +451,7 @@ PyDoc_STRVAR(_sre_SRE_Match_expand__doc_ "Return the string obtained by doing backslash substitution on the string template, as done by the sub() method."); #define _SRE_SRE_MATCH_EXPAND_METHODDEF \ - {"expand", (PyCFunction)_sre_SRE_Match_expand, METH_FASTCALL, _sre_SRE_Match_expand__doc__}, + {"expand", (PyCFunction)_sre_SRE_Match_expand, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Match_expand__doc__}, static PyObject * _sre_SRE_Match_expand_impl(MatchObject *self, PyObject *template); @@ -488,7 +484,7 @@ PyDoc_STRVAR(_sre_SRE_Match_groups__doc_ " Is used for groups that did not participate in the match."); #define _SRE_SRE_MATCH_GROUPS_METHODDEF \ - {"groups", (PyCFunction)_sre_SRE_Match_groups, METH_FASTCALL, _sre_SRE_Match_groups__doc__}, + {"groups", (PyCFunction)_sre_SRE_Match_groups, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Match_groups__doc__}, static PyObject * _sre_SRE_Match_groups_impl(MatchObject *self, PyObject *default_value); @@ -521,7 +517,7 @@ PyDoc_STRVAR(_sre_SRE_Match_groupdict__d " Is used for groups that did not participate in the match."); #define _SRE_SRE_MATCH_GROUPDICT_METHODDEF \ - {"groupdict", (PyCFunction)_sre_SRE_Match_groupdict, METH_FASTCALL, _sre_SRE_Match_groupdict__doc__}, + {"groupdict", (PyCFunction)_sre_SRE_Match_groupdict, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Match_groupdict__doc__}, static PyObject * _sre_SRE_Match_groupdict_impl(MatchObject *self, PyObject *default_value); @@ -557,7 +553,7 @@ static Py_ssize_t _sre_SRE_Match_start_impl(MatchObject *self, PyObject *group); static PyObject * -_sre_SRE_Match_start(MatchObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_sre_SRE_Match_start(MatchObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *group = NULL; @@ -568,10 +564,6 @@ static PyObject * &group)) { goto exit; } - - if (!_PyArg_NoStackKeywords("start", kwnames)) { - goto exit; - } _return_value = _sre_SRE_Match_start_impl(self, group); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -595,7 +587,7 @@ static Py_ssize_t _sre_SRE_Match_end_impl(MatchObject *self, PyObject *group); static PyObject * -_sre_SRE_Match_end(MatchObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_sre_SRE_Match_end(MatchObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *group = NULL; @@ -606,10 +598,6 @@ static PyObject * &group)) { goto exit; } - - if (!_PyArg_NoStackKeywords("end", kwnames)) { - goto exit; - } _return_value = _sre_SRE_Match_end_impl(self, group); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -633,7 +621,7 @@ static PyObject * _sre_SRE_Match_span_impl(MatchObject *self, PyObject *group); static PyObject * -_sre_SRE_Match_span(MatchObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_sre_SRE_Match_span(MatchObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *group = NULL; @@ -643,10 +631,6 @@ static PyObject * &group)) { goto exit; } - - if (!_PyArg_NoStackKeywords("span", kwnames)) { - goto exit; - } return_value = _sre_SRE_Match_span_impl(self, group); exit: @@ -676,7 +660,7 @@ PyDoc_STRVAR(_sre_SRE_Match___deepcopy__ "\n"); #define _SRE_SRE_MATCH___DEEPCOPY___METHODDEF \ - {"__deepcopy__", (PyCFunction)_sre_SRE_Match___deepcopy__, METH_FASTCALL, _sre_SRE_Match___deepcopy____doc__}, + {"__deepcopy__", (PyCFunction)_sre_SRE_Match___deepcopy__, METH_FASTCALL|METH_KEYWORDS, _sre_SRE_Match___deepcopy____doc__}, static PyObject * _sre_SRE_Match___deepcopy___impl(MatchObject *self, PyObject *memo); @@ -732,4 +716,4 @@ static PyObject * { return _sre_SRE_Scanner_search_impl(self); } -/*[clinic end generated code: output=5df18da8e2dc762c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f684c215570fe6fb input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_ssl.c.h --- a/Modules/clinic/_ssl.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_ssl.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -66,7 +66,7 @@ static PyObject * _ssl__SSLSocket_peer_certificate_impl(PySSLSocket *self, int binary_mode); static PyObject * -_ssl__SSLSocket_peer_certificate(PySSLSocket *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_ssl__SSLSocket_peer_certificate(PySSLSocket *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int binary_mode = 0; @@ -75,10 +75,6 @@ static PyObject * &binary_mode)) { goto exit; } - - if (!_PyArg_NoStackKeywords("peer_certificate", kwnames)) { - goto exit; - } return_value = _ssl__SSLSocket_peer_certificate_impl(self, binary_mode); exit: @@ -473,7 +469,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_cert_ "\n"); #define _SSL__SSLCONTEXT_LOAD_CERT_CHAIN_METHODDEF \ - {"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_FASTCALL, _ssl__SSLContext_load_cert_chain__doc__}, + {"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext_load_cert_chain__doc__}, static PyObject * _ssl__SSLContext_load_cert_chain_impl(PySSLContext *self, PyObject *certfile, @@ -505,7 +501,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_verif "\n"); #define _SSL__SSLCONTEXT_LOAD_VERIFY_LOCATIONS_METHODDEF \ - {"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_FASTCALL, _ssl__SSLContext_load_verify_locations__doc__}, + {"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext_load_verify_locations__doc__}, static PyObject * _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self, @@ -547,7 +543,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_sock "\n"); #define _SSL__SSLCONTEXT__WRAP_SOCKET_METHODDEF \ - {"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_FASTCALL, _ssl__SSLContext__wrap_socket__doc__}, + {"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext__wrap_socket__doc__}, static PyObject * _ssl__SSLContext__wrap_socket_impl(PySSLContext *self, PyObject *sock, @@ -580,7 +576,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_bio_ "\n"); #define _SSL__SSLCONTEXT__WRAP_BIO_METHODDEF \ - {"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_FASTCALL, _ssl__SSLContext__wrap_bio__doc__}, + {"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext__wrap_bio__doc__}, static PyObject * _ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming, @@ -704,7 +700,7 @@ PyDoc_STRVAR(_ssl__SSLContext_get_ca_cer "been used at least once."); #define _SSL__SSLCONTEXT_GET_CA_CERTS_METHODDEF \ - {"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_FASTCALL, _ssl__SSLContext_get_ca_certs__doc__}, + {"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext_get_ca_certs__doc__}, static PyObject * _ssl__SSLContext_get_ca_certs_impl(PySSLContext *self, int binary_form); @@ -767,7 +763,7 @@ static PyObject * _ssl_MemoryBIO_read_impl(PySSLMemoryBIO *self, int len); static PyObject * -_ssl_MemoryBIO_read(PySSLMemoryBIO *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_ssl_MemoryBIO_read(PySSLMemoryBIO *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int len = -1; @@ -776,10 +772,6 @@ static PyObject * &len)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = _ssl_MemoryBIO_read_impl(self, len); exit: @@ -856,7 +848,7 @@ static PyObject * _ssl_RAND_add_impl(PyObject *module, Py_buffer *view, double entropy); static PyObject * -_ssl_RAND_add(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_ssl_RAND_add(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer view = {NULL, NULL}; @@ -866,10 +858,6 @@ static PyObject * &view, &entropy)) { goto exit; } - - if (!_PyArg_NoStackKeywords("RAND_add", kwnames)) { - goto exit; - } return_value = _ssl_RAND_add_impl(module, &view, entropy); exit: @@ -1023,7 +1011,7 @@ PyDoc_STRVAR(_ssl_txt2obj__doc__, "long name are also matched."); #define _SSL_TXT2OBJ_METHODDEF \ - {"txt2obj", (PyCFunction)_ssl_txt2obj, METH_FASTCALL, _ssl_txt2obj__doc__}, + {"txt2obj", (PyCFunction)_ssl_txt2obj, METH_FASTCALL|METH_KEYWORDS, _ssl_txt2obj__doc__}, static PyObject * _ssl_txt2obj_impl(PyObject *module, const char *txt, int name); @@ -1089,7 +1077,7 @@ PyDoc_STRVAR(_ssl_enum_certificates__doc "a set of OIDs or the boolean True."); #define _SSL_ENUM_CERTIFICATES_METHODDEF \ - {"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_FASTCALL, _ssl_enum_certificates__doc__}, + {"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_FASTCALL|METH_KEYWORDS, _ssl_enum_certificates__doc__}, static PyObject * _ssl_enum_certificates_impl(PyObject *module, const char *store_name); @@ -1128,7 +1116,7 @@ PyDoc_STRVAR(_ssl_enum_crls__doc__, "X509_ASN_ENCODING or PKCS_7_ASN_ENCODING."); #define _SSL_ENUM_CRLS_METHODDEF \ - {"enum_crls", (PyCFunction)_ssl_enum_crls, METH_FASTCALL, _ssl_enum_crls__doc__}, + {"enum_crls", (PyCFunction)_ssl_enum_crls, METH_FASTCALL|METH_KEYWORDS, _ssl_enum_crls__doc__}, static PyObject * _ssl_enum_crls_impl(PyObject *module, const char *store_name); @@ -1180,4 +1168,4 @@ exit: #ifndef _SSL_ENUM_CRLS_METHODDEF #define _SSL_ENUM_CRLS_METHODDEF #endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */ -/*[clinic end generated code: output=53cd9100580b45a2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bd01240c310afb5d input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_struct.c.h --- a/Modules/clinic/_struct.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_struct.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -84,7 +84,7 @@ PyDoc_STRVAR(Struct_unpack_from__doc__, "See help(struct) for more on format strings."); #define STRUCT_UNPACK_FROM_METHODDEF \ - {"unpack_from", (PyCFunction)Struct_unpack_from, METH_FASTCALL, Struct_unpack_from__doc__}, + {"unpack_from", (PyCFunction)Struct_unpack_from, METH_FASTCALL|METH_KEYWORDS, Struct_unpack_from__doc__}, static PyObject * Struct_unpack_from_impl(PyStructObject *self, Py_buffer *buffer, @@ -198,7 +198,7 @@ static PyObject * unpack_impl(PyObject *module, PyStructObject *s_object, Py_buffer *buffer); static PyObject * -unpack(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unpack(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyStructObject *s_object = NULL; @@ -208,10 +208,6 @@ unpack(PyObject *module, PyObject **args cache_struct_converter, &s_object, &buffer)) { goto exit; } - - if (!_PyArg_NoStackKeywords("unpack", kwnames)) { - goto exit; - } return_value = unpack_impl(module, s_object, &buffer); exit: @@ -236,7 +232,7 @@ PyDoc_STRVAR(unpack_from__doc__, "See help(struct) for more on format strings."); #define UNPACK_FROM_METHODDEF \ - {"unpack_from", (PyCFunction)unpack_from, METH_FASTCALL, unpack_from__doc__}, + {"unpack_from", (PyCFunction)unpack_from, METH_FASTCALL|METH_KEYWORDS, unpack_from__doc__}, static PyObject * unpack_from_impl(PyObject *module, PyStructObject *s_object, @@ -288,7 +284,7 @@ iter_unpack_impl(PyObject *module, PyStr PyObject *buffer); static PyObject * -iter_unpack(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +iter_unpack(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyStructObject *s_object = NULL; @@ -298,10 +294,6 @@ iter_unpack(PyObject *module, PyObject * cache_struct_converter, &s_object, &buffer)) { goto exit; } - - if (!_PyArg_NoStackKeywords("iter_unpack", kwnames)) { - goto exit; - } return_value = iter_unpack_impl(module, s_object, buffer); exit: @@ -310,4 +302,4 @@ exit: return return_value; } -/*[clinic end generated code: output=03e0d193ab1983f9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=fce060787b4c5261 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_tkinter.c.h --- a/Modules/clinic/_tkinter.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_tkinter.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -263,7 +263,7 @@ static PyObject * PyObject *func); static PyObject * -_tkinter_tkapp_createcommand(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_createcommand(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *name; @@ -273,10 +273,6 @@ static PyObject * &name, &func)) { goto exit; } - - if (!_PyArg_NoStackKeywords("createcommand", kwnames)) { - goto exit; - } return_value = _tkinter_tkapp_createcommand_impl(self, name, func); exit: @@ -324,7 +320,7 @@ static PyObject * int mask, PyObject *func); static PyObject * -_tkinter_tkapp_createfilehandler(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_createfilehandler(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *file; @@ -335,10 +331,6 @@ static PyObject * &file, &mask, &func)) { goto exit; } - - if (!_PyArg_NoStackKeywords("createfilehandler", kwnames)) { - goto exit; - } return_value = _tkinter_tkapp_createfilehandler_impl(self, file, mask, func); exit: @@ -389,7 +381,7 @@ static PyObject * PyObject *func); static PyObject * -_tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int milliseconds; @@ -399,10 +391,6 @@ static PyObject * &milliseconds, &func)) { goto exit; } - - if (!_PyArg_NoStackKeywords("createtimerhandler", kwnames)) { - goto exit; - } return_value = _tkinter_tkapp_createtimerhandler_impl(self, milliseconds, func); exit: @@ -421,7 +409,7 @@ static PyObject * _tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold); static PyObject * -_tkinter_tkapp_mainloop(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_mainloop(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int threshold = 0; @@ -430,10 +418,6 @@ static PyObject * &threshold)) { goto exit; } - - if (!_PyArg_NoStackKeywords("mainloop", kwnames)) { - goto exit; - } return_value = _tkinter_tkapp_mainloop_impl(self, threshold); exit: @@ -452,7 +436,7 @@ static PyObject * _tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags); static PyObject * -_tkinter_tkapp_dooneevent(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_dooneevent(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int flags = 0; @@ -461,10 +445,6 @@ static PyObject * &flags)) { goto exit; } - - if (!_PyArg_NoStackKeywords("dooneevent", kwnames)) { - goto exit; - } return_value = _tkinter_tkapp_dooneevent_impl(self, flags); exit: @@ -572,7 +552,7 @@ static PyObject * const char *use); static PyObject * -_tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *screenName = NULL; @@ -588,10 +568,6 @@ static PyObject * &screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) { goto exit; } - - if (!_PyArg_NoStackKeywords("create", kwnames)) { - goto exit; - } return_value = _tkinter_create_impl(module, screenName, baseName, className, interactive, wantobjects, wantTk, sync, use); exit: @@ -662,4 +638,4 @@ exit: #ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */ -/*[clinic end generated code: output=328e29a146c4a63b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3b9241f7c703ae4f input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_tracemalloc.c.h --- a/Modules/clinic/_tracemalloc.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_tracemalloc.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -90,7 +90,7 @@ static PyObject * _tracemalloc_start_impl(PyObject *module, Py_ssize_t nframe); static PyObject * -_tracemalloc_start(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tracemalloc_start(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t nframe = 1; @@ -99,10 +99,6 @@ static PyObject * &nframe)) { goto exit; } - - if (!_PyArg_NoStackKeywords("start", kwnames)) { - goto exit; - } return_value = _tracemalloc_start_impl(module, nframe); exit: @@ -189,4 +185,4 @@ static PyObject * { return _tracemalloc_get_traced_memory_impl(module); } -/*[clinic end generated code: output=159ce5d627964f09 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c9a0111391b3ec45 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_weakref.c.h --- a/Modules/clinic/_weakref.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_weakref.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -44,7 +44,7 @@ static PyObject * PyObject *key); static PyObject * -_weakref__remove_dead_weakref(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_weakref__remove_dead_weakref(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *dct; @@ -54,13 +54,9 @@ static PyObject * &PyDict_Type, &dct, &key)) { goto exit; } - - if (!_PyArg_NoStackKeywords("_remove_dead_weakref", kwnames)) { - goto exit; - } return_value = _weakref__remove_dead_weakref_impl(module, dct, key); exit: return return_value; } -/*[clinic end generated code: output=b686303486bdfefd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=87ddb70850080222 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/_winapi.c.h --- a/Modules/clinic/_winapi.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/_winapi.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -95,7 +95,7 @@ PyDoc_STRVAR(_winapi_ConnectNamedPipe__d "\n"); #define _WINAPI_CONNECTNAMEDPIPE_METHODDEF \ - {"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_FASTCALL, _winapi_ConnectNamedPipe__doc__}, + {"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_FASTCALL|METH_KEYWORDS, _winapi_ConnectNamedPipe__doc__}, static PyObject * _winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle, @@ -138,7 +138,7 @@ static HANDLE DWORD flags_and_attributes, HANDLE template_file); static PyObject * -_winapi_CreateFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_CreateFile(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; LPCTSTR file_name; @@ -154,10 +154,6 @@ static PyObject * &file_name, &desired_access, &share_mode, &security_attributes, &creation_disposition, &flags_and_attributes, &template_file)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CreateFile", kwnames)) { - goto exit; - } _return_value = _winapi_CreateFile_impl(module, file_name, desired_access, share_mode, security_attributes, creation_disposition, flags_and_attributes, template_file); if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { goto exit; @@ -184,7 +180,7 @@ static PyObject * LPWSTR dst_path); static PyObject * -_winapi_CreateJunction(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_CreateJunction(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; LPWSTR src_path; @@ -194,10 +190,6 @@ static PyObject * &src_path, &dst_path)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CreateJunction", kwnames)) { - goto exit; - } return_value = _winapi_CreateJunction_impl(module, src_path, dst_path); exit: @@ -222,7 +214,7 @@ static HANDLE LPSECURITY_ATTRIBUTES security_attributes); static PyObject * -_winapi_CreateNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_CreateNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; LPCTSTR name; @@ -239,10 +231,6 @@ static PyObject * &name, &open_mode, &pipe_mode, &max_instances, &out_buffer_size, &in_buffer_size, &default_timeout, &security_attributes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CreateNamedPipe", kwnames)) { - goto exit; - } _return_value = _winapi_CreateNamedPipe_impl(module, name, open_mode, pipe_mode, max_instances, out_buffer_size, in_buffer_size, default_timeout, security_attributes); if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { goto exit; @@ -274,7 +262,7 @@ static PyObject * _winapi_CreatePipe_impl(PyObject *module, PyObject *pipe_attrs, DWORD size); static PyObject * -_winapi_CreatePipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_CreatePipe(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *pipe_attrs; @@ -284,10 +272,6 @@ static PyObject * &pipe_attrs, &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CreatePipe", kwnames)) { - goto exit; - } return_value = _winapi_CreatePipe_impl(module, pipe_attrs, size); exit: @@ -322,7 +306,7 @@ static PyObject * PyObject *startup_info); static PyObject * -_winapi_CreateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_CreateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_UNICODE *application_name; @@ -339,10 +323,6 @@ static PyObject * &application_name, &command_line, &proc_attrs, &thread_attrs, &inherit_handles, &creation_flags, &env_mapping, ¤t_directory, &startup_info)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CreateProcess", kwnames)) { - goto exit; - } return_value = _winapi_CreateProcess_impl(module, application_name, command_line, proc_attrs, thread_attrs, inherit_handles, creation_flags, env_mapping, current_directory, startup_info); exit: @@ -372,7 +352,7 @@ static HANDLE DWORD options); static PyObject * -_winapi_DuplicateHandle(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_DuplicateHandle(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HANDLE source_process_handle; @@ -387,10 +367,6 @@ static PyObject * &source_process_handle, &source_handle, &target_process_handle, &desired_access, &inherit_handle, &options)) { goto exit; } - - if (!_PyArg_NoStackKeywords("DuplicateHandle", kwnames)) { - goto exit; - } _return_value = _winapi_DuplicateHandle_impl(module, source_process_handle, source_handle, target_process_handle, desired_access, inherit_handle, options); if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { goto exit; @@ -635,7 +611,7 @@ static HANDLE BOOL inherit_handle, DWORD process_id); static PyObject * -_winapi_OpenProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_OpenProcess(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; DWORD desired_access; @@ -647,10 +623,6 @@ static PyObject * &desired_access, &inherit_handle, &process_id)) { goto exit; } - - if (!_PyArg_NoStackKeywords("OpenProcess", kwnames)) { - goto exit; - } _return_value = _winapi_OpenProcess_impl(module, desired_access, inherit_handle, process_id); if ((_return_value == INVALID_HANDLE_VALUE) && PyErr_Occurred()) { goto exit; @@ -676,7 +648,7 @@ static PyObject * _winapi_PeekNamedPipe_impl(PyObject *module, HANDLE handle, int size); static PyObject * -_winapi_PeekNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_PeekNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HANDLE handle; @@ -686,10 +658,6 @@ static PyObject * &handle, &size)) { goto exit; } - - if (!_PyArg_NoStackKeywords("PeekNamedPipe", kwnames)) { - goto exit; - } return_value = _winapi_PeekNamedPipe_impl(module, handle, size); exit: @@ -702,7 +670,7 @@ PyDoc_STRVAR(_winapi_ReadFile__doc__, "\n"); #define _WINAPI_READFILE_METHODDEF \ - {"ReadFile", (PyCFunction)_winapi_ReadFile, METH_FASTCALL, _winapi_ReadFile__doc__}, + {"ReadFile", (PyCFunction)_winapi_ReadFile, METH_FASTCALL|METH_KEYWORDS, _winapi_ReadFile__doc__}, static PyObject * _winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size, @@ -744,7 +712,7 @@ static PyObject * PyObject *collect_data_timeout); static PyObject * -_winapi_SetNamedPipeHandleState(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_SetNamedPipeHandleState(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HANDLE named_pipe; @@ -756,10 +724,6 @@ static PyObject * &named_pipe, &mode, &max_collection_count, &collect_data_timeout)) { goto exit; } - - if (!_PyArg_NoStackKeywords("SetNamedPipeHandleState", kwnames)) { - goto exit; - } return_value = _winapi_SetNamedPipeHandleState_impl(module, named_pipe, mode, max_collection_count, collect_data_timeout); exit: @@ -780,7 +744,7 @@ static PyObject * UINT exit_code); static PyObject * -_winapi_TerminateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_TerminateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HANDLE handle; @@ -790,10 +754,6 @@ static PyObject * &handle, &exit_code)) { goto exit; } - - if (!_PyArg_NoStackKeywords("TerminateProcess", kwnames)) { - goto exit; - } return_value = _winapi_TerminateProcess_impl(module, handle, exit_code); exit: @@ -812,7 +772,7 @@ static PyObject * _winapi_WaitNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD timeout); static PyObject * -_winapi_WaitNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_WaitNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; LPCTSTR name; @@ -822,10 +782,6 @@ static PyObject * &name, &timeout)) { goto exit; } - - if (!_PyArg_NoStackKeywords("WaitNamedPipe", kwnames)) { - goto exit; - } return_value = _winapi_WaitNamedPipe_impl(module, name, timeout); exit: @@ -846,7 +802,7 @@ static PyObject * BOOL wait_flag, DWORD milliseconds); static PyObject * -_winapi_WaitForMultipleObjects(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_WaitForMultipleObjects(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *handle_seq; @@ -857,10 +813,6 @@ static PyObject * &handle_seq, &wait_flag, &milliseconds)) { goto exit; } - - if (!_PyArg_NoStackKeywords("WaitForMultipleObjects", kwnames)) { - goto exit; - } return_value = _winapi_WaitForMultipleObjects_impl(module, handle_seq, wait_flag, milliseconds); exit: @@ -885,7 +837,7 @@ static long DWORD milliseconds); static PyObject * -_winapi_WaitForSingleObject(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_winapi_WaitForSingleObject(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HANDLE handle; @@ -896,10 +848,6 @@ static PyObject * &handle, &milliseconds)) { goto exit; } - - if (!_PyArg_NoStackKeywords("WaitForSingleObject", kwnames)) { - goto exit; - } _return_value = _winapi_WaitForSingleObject_impl(module, handle, milliseconds); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -916,7 +864,7 @@ PyDoc_STRVAR(_winapi_WriteFile__doc__, "\n"); #define _WINAPI_WRITEFILE_METHODDEF \ - {"WriteFile", (PyCFunction)_winapi_WriteFile, METH_FASTCALL, _winapi_WriteFile__doc__}, + {"WriteFile", (PyCFunction)_winapi_WriteFile, METH_FASTCALL|METH_KEYWORDS, _winapi_WriteFile__doc__}, static PyObject * _winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer, @@ -941,4 +889,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=2beb984508fb040a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=afa6bd61eb0f18d2 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/arraymodule.c.h --- a/Modules/clinic/arraymodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/arraymodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -71,7 +71,7 @@ static PyObject * array_array_pop_impl(arrayobject *self, Py_ssize_t i); static PyObject * -array_array_pop(arrayobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +array_array_pop(arrayobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t i = -1; @@ -80,10 +80,6 @@ array_array_pop(arrayobject *self, PyObj &i)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pop", kwnames)) { - goto exit; - } return_value = array_array_pop_impl(self, i); exit: @@ -112,7 +108,7 @@ static PyObject * array_array_insert_impl(arrayobject *self, Py_ssize_t i, PyObject *v); static PyObject * -array_array_insert(arrayobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +array_array_insert(arrayobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t i; @@ -122,10 +118,6 @@ array_array_insert(arrayobject *self, Py &i, &v)) { goto exit; } - - if (!_PyArg_NoStackKeywords("insert", kwnames)) { - goto exit; - } return_value = array_array_insert_impl(self, i, v); exit: @@ -214,7 +206,7 @@ static PyObject * array_array_fromfile_impl(arrayobject *self, PyObject *f, Py_ssize_t n); static PyObject * -array_array_fromfile(arrayobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +array_array_fromfile(arrayobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *f; @@ -224,10 +216,6 @@ array_array_fromfile(arrayobject *self, &f, &n)) { goto exit; } - - if (!_PyArg_NoStackKeywords("fromfile", kwnames)) { - goto exit; - } return_value = array_array_fromfile_impl(self, f, n); exit: @@ -464,7 +452,7 @@ array__array_reconstructor_impl(PyObject PyObject *items); static PyObject * -array__array_reconstructor(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +array__array_reconstructor(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyTypeObject *arraytype; @@ -476,10 +464,6 @@ array__array_reconstructor(PyObject *mod &arraytype, &typecode, &mformat_code, &items)) { goto exit; } - - if (!_PyArg_NoStackKeywords("_array_reconstructor", kwnames)) { - goto exit; - } return_value = array__array_reconstructor_impl(module, arraytype, typecode, mformat_code, items); exit: @@ -521,4 +505,4 @@ PyDoc_STRVAR(array_arrayiterator___setst #define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \ {"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__}, -/*[clinic end generated code: output=d186a7553c1f1a41 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c7dfe61312b236a9 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/audioop.c.h --- a/Modules/clinic/audioop.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/audioop.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -16,7 +16,7 @@ audioop_getsample_impl(PyObject *module, Py_ssize_t index); static PyObject * -audioop_getsample(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_getsample(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -27,10 +27,6 @@ audioop_getsample(PyObject *module, PyOb &fragment, &width, &index)) { goto exit; } - - if (!_PyArg_NoStackKeywords("getsample", kwnames)) { - goto exit; - } return_value = audioop_getsample_impl(module, &fragment, width, index); exit: @@ -55,7 +51,7 @@ static PyObject * audioop_max_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_max(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_max(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -65,10 +61,6 @@ audioop_max(PyObject *module, PyObject * &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("max", kwnames)) { - goto exit; - } return_value = audioop_max_impl(module, &fragment, width); exit: @@ -93,7 +85,7 @@ static PyObject * audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_minmax(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_minmax(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -103,10 +95,6 @@ audioop_minmax(PyObject *module, PyObjec &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("minmax", kwnames)) { - goto exit; - } return_value = audioop_minmax_impl(module, &fragment, width); exit: @@ -131,7 +119,7 @@ static PyObject * audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_avg(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_avg(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -141,10 +129,6 @@ audioop_avg(PyObject *module, PyObject * &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("avg", kwnames)) { - goto exit; - } return_value = audioop_avg_impl(module, &fragment, width); exit: @@ -169,7 +153,7 @@ static PyObject * audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_rms(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_rms(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -179,10 +163,6 @@ audioop_rms(PyObject *module, PyObject * &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rms", kwnames)) { - goto exit; - } return_value = audioop_rms_impl(module, &fragment, width); exit: @@ -208,7 +188,7 @@ audioop_findfit_impl(PyObject *module, P Py_buffer *reference); static PyObject * -audioop_findfit(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_findfit(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -218,10 +198,6 @@ audioop_findfit(PyObject *module, PyObje &fragment, &reference)) { goto exit; } - - if (!_PyArg_NoStackKeywords("findfit", kwnames)) { - goto exit; - } return_value = audioop_findfit_impl(module, &fragment, &reference); exit: @@ -251,7 +227,7 @@ audioop_findfactor_impl(PyObject *module Py_buffer *reference); static PyObject * -audioop_findfactor(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_findfactor(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -261,10 +237,6 @@ audioop_findfactor(PyObject *module, PyO &fragment, &reference)) { goto exit; } - - if (!_PyArg_NoStackKeywords("findfactor", kwnames)) { - goto exit; - } return_value = audioop_findfactor_impl(module, &fragment, &reference); exit: @@ -294,7 +266,7 @@ audioop_findmax_impl(PyObject *module, P Py_ssize_t length); static PyObject * -audioop_findmax(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_findmax(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -304,10 +276,6 @@ audioop_findmax(PyObject *module, PyObje &fragment, &length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("findmax", kwnames)) { - goto exit; - } return_value = audioop_findmax_impl(module, &fragment, length); exit: @@ -332,7 +300,7 @@ static PyObject * audioop_avgpp_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_avgpp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_avgpp(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -342,10 +310,6 @@ audioop_avgpp(PyObject *module, PyObject &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("avgpp", kwnames)) { - goto exit; - } return_value = audioop_avgpp_impl(module, &fragment, width); exit: @@ -370,7 +334,7 @@ static PyObject * audioop_maxpp_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_maxpp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_maxpp(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -380,10 +344,6 @@ audioop_maxpp(PyObject *module, PyObject &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("maxpp", kwnames)) { - goto exit; - } return_value = audioop_maxpp_impl(module, &fragment, width); exit: @@ -408,7 +368,7 @@ static PyObject * audioop_cross_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_cross(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_cross(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -418,10 +378,6 @@ audioop_cross(PyObject *module, PyObject &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("cross", kwnames)) { - goto exit; - } return_value = audioop_cross_impl(module, &fragment, width); exit: @@ -447,7 +403,7 @@ audioop_mul_impl(PyObject *module, Py_bu double factor); static PyObject * -audioop_mul(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_mul(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -458,10 +414,6 @@ audioop_mul(PyObject *module, PyObject * &fragment, &width, &factor)) { goto exit; } - - if (!_PyArg_NoStackKeywords("mul", kwnames)) { - goto exit; - } return_value = audioop_mul_impl(module, &fragment, width, factor); exit: @@ -487,7 +439,7 @@ audioop_tomono_impl(PyObject *module, Py double lfactor, double rfactor); static PyObject * -audioop_tomono(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_tomono(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -499,10 +451,6 @@ audioop_tomono(PyObject *module, PyObjec &fragment, &width, &lfactor, &rfactor)) { goto exit; } - - if (!_PyArg_NoStackKeywords("tomono", kwnames)) { - goto exit; - } return_value = audioop_tomono_impl(module, &fragment, width, lfactor, rfactor); exit: @@ -528,7 +476,7 @@ audioop_tostereo_impl(PyObject *module, double lfactor, double rfactor); static PyObject * -audioop_tostereo(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_tostereo(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -540,10 +488,6 @@ audioop_tostereo(PyObject *module, PyObj &fragment, &width, &lfactor, &rfactor)) { goto exit; } - - if (!_PyArg_NoStackKeywords("tostereo", kwnames)) { - goto exit; - } return_value = audioop_tostereo_impl(module, &fragment, width, lfactor, rfactor); exit: @@ -569,7 +513,7 @@ audioop_add_impl(PyObject *module, Py_bu Py_buffer *fragment2, int width); static PyObject * -audioop_add(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_add(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment1 = {NULL, NULL}; @@ -580,10 +524,6 @@ audioop_add(PyObject *module, PyObject * &fragment1, &fragment2, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("add", kwnames)) { - goto exit; - } return_value = audioop_add_impl(module, &fragment1, &fragment2, width); exit: @@ -612,7 +552,7 @@ static PyObject * audioop_bias_impl(PyObject *module, Py_buffer *fragment, int width, int bias); static PyObject * -audioop_bias(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_bias(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -623,10 +563,6 @@ audioop_bias(PyObject *module, PyObject &fragment, &width, &bias)) { goto exit; } - - if (!_PyArg_NoStackKeywords("bias", kwnames)) { - goto exit; - } return_value = audioop_bias_impl(module, &fragment, width, bias); exit: @@ -651,7 +587,7 @@ static PyObject * audioop_reverse_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_reverse(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_reverse(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -661,10 +597,6 @@ audioop_reverse(PyObject *module, PyObje &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("reverse", kwnames)) { - goto exit; - } return_value = audioop_reverse_impl(module, &fragment, width); exit: @@ -689,7 +621,7 @@ static PyObject * audioop_byteswap_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_byteswap(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_byteswap(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -699,10 +631,6 @@ audioop_byteswap(PyObject *module, PyObj &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("byteswap", kwnames)) { - goto exit; - } return_value = audioop_byteswap_impl(module, &fragment, width); exit: @@ -728,7 +656,7 @@ audioop_lin2lin_impl(PyObject *module, P int newwidth); static PyObject * -audioop_lin2lin(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_lin2lin(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -739,10 +667,6 @@ audioop_lin2lin(PyObject *module, PyObje &fragment, &width, &newwidth)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lin2lin", kwnames)) { - goto exit; - } return_value = audioop_lin2lin_impl(module, &fragment, width, newwidth); exit: @@ -770,7 +694,7 @@ audioop_ratecv_impl(PyObject *module, Py int weightA, int weightB); static PyObject * -audioop_ratecv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_ratecv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -786,10 +710,6 @@ audioop_ratecv(PyObject *module, PyObjec &fragment, &width, &nchannels, &inrate, &outrate, &state, &weightA, &weightB)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ratecv", kwnames)) { - goto exit; - } return_value = audioop_ratecv_impl(module, &fragment, width, nchannels, inrate, outrate, state, weightA, weightB); exit: @@ -814,7 +734,7 @@ static PyObject * audioop_lin2ulaw_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_lin2ulaw(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_lin2ulaw(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -824,10 +744,6 @@ audioop_lin2ulaw(PyObject *module, PyObj &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lin2ulaw", kwnames)) { - goto exit; - } return_value = audioop_lin2ulaw_impl(module, &fragment, width); exit: @@ -852,7 +768,7 @@ static PyObject * audioop_ulaw2lin_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_ulaw2lin(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_ulaw2lin(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -862,10 +778,6 @@ audioop_ulaw2lin(PyObject *module, PyObj &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ulaw2lin", kwnames)) { - goto exit; - } return_value = audioop_ulaw2lin_impl(module, &fragment, width); exit: @@ -890,7 +802,7 @@ static PyObject * audioop_lin2alaw_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_lin2alaw(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_lin2alaw(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -900,10 +812,6 @@ audioop_lin2alaw(PyObject *module, PyObj &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lin2alaw", kwnames)) { - goto exit; - } return_value = audioop_lin2alaw_impl(module, &fragment, width); exit: @@ -928,7 +836,7 @@ static PyObject * audioop_alaw2lin_impl(PyObject *module, Py_buffer *fragment, int width); static PyObject * -audioop_alaw2lin(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_alaw2lin(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -938,10 +846,6 @@ audioop_alaw2lin(PyObject *module, PyObj &fragment, &width)) { goto exit; } - - if (!_PyArg_NoStackKeywords("alaw2lin", kwnames)) { - goto exit; - } return_value = audioop_alaw2lin_impl(module, &fragment, width); exit: @@ -967,7 +871,7 @@ audioop_lin2adpcm_impl(PyObject *module, PyObject *state); static PyObject * -audioop_lin2adpcm(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_lin2adpcm(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -978,10 +882,6 @@ audioop_lin2adpcm(PyObject *module, PyOb &fragment, &width, &state)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lin2adpcm", kwnames)) { - goto exit; - } return_value = audioop_lin2adpcm_impl(module, &fragment, width, state); exit: @@ -1007,7 +907,7 @@ audioop_adpcm2lin_impl(PyObject *module, PyObject *state); static PyObject * -audioop_adpcm2lin(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +audioop_adpcm2lin(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer fragment = {NULL, NULL}; @@ -1018,10 +918,6 @@ audioop_adpcm2lin(PyObject *module, PyOb &fragment, &width, &state)) { goto exit; } - - if (!_PyArg_NoStackKeywords("adpcm2lin", kwnames)) { - goto exit; - } return_value = audioop_adpcm2lin_impl(module, &fragment, width, state); exit: @@ -1032,4 +928,4 @@ exit: return return_value; } -/*[clinic end generated code: output=ee7c63ec28a11b78 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e2076026235d7f0f input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/binascii.c.h --- a/Modules/clinic/binascii.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/binascii.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -103,7 +103,7 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__, "Base64-code line of data."); #define BINASCII_B2A_BASE64_METHODDEF \ - {"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_FASTCALL, binascii_b2a_base64__doc__}, + {"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_FASTCALL|METH_KEYWORDS, binascii_b2a_base64__doc__}, static PyObject * binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline); @@ -272,7 +272,7 @@ static unsigned int binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc); static PyObject * -binascii_crc_hqx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +binascii_crc_hqx(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -283,10 +283,6 @@ binascii_crc_hqx(PyObject *module, PyObj &data, &crc)) { goto exit; } - - if (!_PyArg_NoStackKeywords("crc_hqx", kwnames)) { - goto exit; - } _return_value = binascii_crc_hqx_impl(module, &data, crc); if ((_return_value == (unsigned int)-1) && PyErr_Occurred()) { goto exit; @@ -315,7 +311,7 @@ static unsigned int binascii_crc32_impl(PyObject *module, Py_buffer *data, unsigned int crc); static PyObject * -binascii_crc32(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +binascii_crc32(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -326,10 +322,6 @@ binascii_crc32(PyObject *module, PyObjec &data, &crc)) { goto exit; } - - if (!_PyArg_NoStackKeywords("crc32", kwnames)) { - goto exit; - } _return_value = binascii_crc32_impl(module, &data, crc); if ((_return_value == (unsigned int)-1) && PyErr_Occurred()) { goto exit; @@ -488,7 +480,7 @@ PyDoc_STRVAR(binascii_a2b_qp__doc__, "Decode a string of qp-encoded data."); #define BINASCII_A2B_QP_METHODDEF \ - {"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_FASTCALL, binascii_a2b_qp__doc__}, + {"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_FASTCALL|METH_KEYWORDS, binascii_a2b_qp__doc__}, static PyObject * binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header); @@ -527,7 +519,7 @@ PyDoc_STRVAR(binascii_b2a_qp__doc__, "are both encoded. When quotetabs is set, space and tabs are encoded."); #define BINASCII_B2A_QP_METHODDEF \ - {"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_FASTCALL, binascii_b2a_qp__doc__}, + {"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_FASTCALL|METH_KEYWORDS, binascii_b2a_qp__doc__}, static PyObject * binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, @@ -558,4 +550,4 @@ exit: return return_value; } -/*[clinic end generated code: output=4a418f883ccc79fe input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e7dfb211de8cc097 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/cmathmodule.c.h --- a/Modules/clinic/cmathmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/cmathmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -647,7 +647,7 @@ static PyObject * cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj); static PyObject * -cmath_log(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +cmath_log(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_complex x; @@ -657,10 +657,6 @@ cmath_log(PyObject *module, PyObject **a &x, &y_obj)) { goto exit; } - - if (!_PyArg_NoStackKeywords("log", kwnames)) { - goto exit; - } return_value = cmath_log_impl(module, x, y_obj); exit: @@ -736,7 +732,7 @@ static PyObject * cmath_rect_impl(PyObject *module, double r, double phi); static PyObject * -cmath_rect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +cmath_rect(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; double r; @@ -746,10 +742,6 @@ cmath_rect(PyObject *module, PyObject ** &r, &phi)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rect", kwnames)) { - goto exit; - } return_value = cmath_rect_impl(module, r, phi); exit: @@ -859,7 +851,7 @@ PyDoc_STRVAR(cmath_isclose__doc__, "not close to anything, even itself. inf and -inf are only close to themselves."); #define CMATH_ISCLOSE_METHODDEF \ - {"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL, cmath_isclose__doc__}, + {"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL|METH_KEYWORDS, cmath_isclose__doc__}, static int cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b, @@ -890,4 +882,4 @@ cmath_isclose(PyObject *module, PyObject exit: return return_value; } -/*[clinic end generated code: output=93eff5d4c242ee57 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=51ba28d27d10264e input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/fcntlmodule.c.h --- a/Modules/clinic/fcntlmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/fcntlmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -25,7 +25,7 @@ static PyObject * fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg); static PyObject * -fcntl_fcntl(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +fcntl_fcntl(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -36,10 +36,6 @@ fcntl_fcntl(PyObject *module, PyObject * conv_descriptor, &fd, &code, &arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("fcntl", kwnames)) { - goto exit; - } return_value = fcntl_fcntl_impl(module, fd, code, arg); exit: @@ -87,7 +83,7 @@ fcntl_ioctl_impl(PyObject *module, int f PyObject *ob_arg, int mutate_arg); static PyObject * -fcntl_ioctl(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +fcntl_ioctl(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -99,10 +95,6 @@ fcntl_ioctl(PyObject *module, PyObject * conv_descriptor, &fd, &code, &ob_arg, &mutate_arg)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ioctl", kwnames)) { - goto exit; - } return_value = fcntl_ioctl_impl(module, fd, code, ob_arg, mutate_arg); exit: @@ -125,7 +117,7 @@ static PyObject * fcntl_flock_impl(PyObject *module, int fd, int code); static PyObject * -fcntl_flock(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +fcntl_flock(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -135,10 +127,6 @@ fcntl_flock(PyObject *module, PyObject * conv_descriptor, &fd, &code)) { goto exit; } - - if (!_PyArg_NoStackKeywords("flock", kwnames)) { - goto exit; - } return_value = fcntl_flock_impl(module, fd, code); exit: @@ -180,7 +168,7 @@ fcntl_lockf_impl(PyObject *module, int f PyObject *startobj, int whence); static PyObject * -fcntl_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +fcntl_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -193,13 +181,9 @@ fcntl_lockf(PyObject *module, PyObject * conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lockf", kwnames)) { - goto exit; - } return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence); exit: return return_value; } -/*[clinic end generated code: output=b67e9579722e6d4f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6105e3ada306f434 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/gcmodule.c.h --- a/Modules/clinic/gcmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/gcmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -79,7 +79,7 @@ PyDoc_STRVAR(gc_collect__doc__, "The number of unreachable objects is returned."); #define GC_COLLECT_METHODDEF \ - {"collect", (PyCFunction)gc_collect, METH_FASTCALL, gc_collect__doc__}, + {"collect", (PyCFunction)gc_collect, METH_FASTCALL|METH_KEYWORDS, gc_collect__doc__}, static Py_ssize_t gc_collect_impl(PyObject *module, int generation); @@ -255,4 +255,4 @@ PyDoc_STRVAR(gc_is_tracked__doc__, #define GC_IS_TRACKED_METHODDEF \ {"is_tracked", (PyCFunction)gc_is_tracked, METH_O, gc_is_tracked__doc__}, -/*[clinic end generated code: output=8f487abc53fe4161 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5a58583f00ab018e input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/grpmodule.c.h --- a/Modules/clinic/grpmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/grpmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -11,7 +11,7 @@ PyDoc_STRVAR(grp_getgrgid__doc__, "If id is not valid, raise KeyError."); #define GRP_GETGRGID_METHODDEF \ - {"getgrgid", (PyCFunction)grp_getgrgid, METH_FASTCALL, grp_getgrgid__doc__}, + {"getgrgid", (PyCFunction)grp_getgrgid, METH_FASTCALL|METH_KEYWORDS, grp_getgrgid__doc__}, static PyObject * grp_getgrgid_impl(PyObject *module, PyObject *id); @@ -43,7 +43,7 @@ PyDoc_STRVAR(grp_getgrnam__doc__, "If name is not valid, raise KeyError."); #define GRP_GETGRNAM_METHODDEF \ - {"getgrnam", (PyCFunction)grp_getgrnam, METH_FASTCALL, grp_getgrnam__doc__}, + {"getgrnam", (PyCFunction)grp_getgrnam, METH_FASTCALL|METH_KEYWORDS, grp_getgrnam__doc__}, static PyObject * grp_getgrnam_impl(PyObject *module, PyObject *name); @@ -86,4 +86,4 @@ grp_getgrall(PyObject *module, PyObject { return grp_getgrall_impl(module); } -/*[clinic end generated code: output=fb690db5e676d378 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e7ef2cbc437eedcb input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/mathmodule.c.h --- a/Modules/clinic/mathmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/mathmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -15,7 +15,7 @@ static PyObject * math_gcd_impl(PyObject *module, PyObject *a, PyObject *b); static PyObject * -math_gcd(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +math_gcd(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *a; @@ -26,10 +26,6 @@ math_gcd(PyObject *module, PyObject **ar &a, &b)) { goto exit; } - - if (!_PyArg_NoStackKeywords("gcd", kwnames)) { - goto exit; - } return_value = math_gcd_impl(module, a, b); exit: @@ -136,7 +132,7 @@ static PyObject * math_ldexp_impl(PyObject *module, double x, PyObject *i); static PyObject * -math_ldexp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +math_ldexp(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; double x; @@ -146,10 +142,6 @@ math_ldexp(PyObject *module, PyObject ** &x, &i)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ldexp", kwnames)) { - goto exit; - } return_value = math_ldexp_impl(module, x, i); exit: @@ -261,7 +253,7 @@ static PyObject * math_fmod_impl(PyObject *module, double x, double y); static PyObject * -math_fmod(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +math_fmod(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; double x; @@ -271,10 +263,6 @@ math_fmod(PyObject *module, PyObject **a &x, &y)) { goto exit; } - - if (!_PyArg_NoStackKeywords("fmod", kwnames)) { - goto exit; - } return_value = math_fmod_impl(module, x, y); exit: @@ -294,7 +282,7 @@ static PyObject * math_hypot_impl(PyObject *module, double x, double y); static PyObject * -math_hypot(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +math_hypot(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; double x; @@ -304,10 +292,6 @@ math_hypot(PyObject *module, PyObject ** &x, &y)) { goto exit; } - - if (!_PyArg_NoStackKeywords("hypot", kwnames)) { - goto exit; - } return_value = math_hypot_impl(module, x, y); exit: @@ -327,7 +311,7 @@ static PyObject * math_pow_impl(PyObject *module, double x, double y); static PyObject * -math_pow(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +math_pow(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; double x; @@ -337,10 +321,6 @@ math_pow(PyObject *module, PyObject **ar &x, &y)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pow", kwnames)) { - goto exit; - } return_value = math_pow_impl(module, x, y); exit: @@ -505,7 +485,7 @@ PyDoc_STRVAR(math_isclose__doc__, "only close to themselves."); #define MATH_ISCLOSE_METHODDEF \ - {"isclose", (PyCFunction)math_isclose, METH_FASTCALL, math_isclose__doc__}, + {"isclose", (PyCFunction)math_isclose, METH_FASTCALL|METH_KEYWORDS, math_isclose__doc__}, static int math_isclose_impl(PyObject *module, double a, double b, double rel_tol, @@ -536,4 +516,4 @@ math_isclose(PyObject *module, PyObject exit: return return_value; } -/*[clinic end generated code: output=71806f73a5c4bf0b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d9bfbd645d273209 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/md5module.c.h --- a/Modules/clinic/md5module.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/md5module.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -72,7 +72,7 @@ PyDoc_STRVAR(_md5_md5__doc__, "Return a new MD5 hash object; optionally initialized with a string."); #define _MD5_MD5_METHODDEF \ - {"md5", (PyCFunction)_md5_md5, METH_FASTCALL, _md5_md5__doc__}, + {"md5", (PyCFunction)_md5_md5, METH_FASTCALL|METH_KEYWORDS, _md5_md5__doc__}, static PyObject * _md5_md5_impl(PyObject *module, PyObject *string); @@ -94,4 +94,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=0a975e22cf33f833 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3139ae340ad1ea4e input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/posixmodule.c.h --- a/Modules/clinic/posixmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/posixmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -28,7 +28,7 @@ PyDoc_STRVAR(os_stat__doc__, " an open file descriptor."); #define OS_STAT_METHODDEF \ - {"stat", (PyCFunction)os_stat, METH_FASTCALL, os_stat__doc__}, + {"stat", (PyCFunction)os_stat, METH_FASTCALL|METH_KEYWORDS, os_stat__doc__}, static PyObject * os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks); @@ -66,7 +66,7 @@ PyDoc_STRVAR(os_lstat__doc__, "Equivalent to stat(path, follow_symlinks=False)."); #define OS_LSTAT_METHODDEF \ - {"lstat", (PyCFunction)os_lstat, METH_FASTCALL, os_lstat__doc__}, + {"lstat", (PyCFunction)os_lstat, METH_FASTCALL|METH_KEYWORDS, os_lstat__doc__}, static PyObject * os_lstat_impl(PyObject *module, path_t *path, int dir_fd); @@ -126,7 +126,7 @@ PyDoc_STRVAR(os_access__doc__, " has the specified access to the path."); #define OS_ACCESS_METHODDEF \ - {"access", (PyCFunction)os_access, METH_FASTCALL, os_access__doc__}, + {"access", (PyCFunction)os_access, METH_FASTCALL|METH_KEYWORDS, os_access__doc__}, static int os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd, @@ -234,7 +234,7 @@ PyDoc_STRVAR(os_chdir__doc__, " If this functionality is unavailable, using it raises an exception."); #define OS_CHDIR_METHODDEF \ - {"chdir", (PyCFunction)os_chdir, METH_FASTCALL, os_chdir__doc__}, + {"chdir", (PyCFunction)os_chdir, METH_FASTCALL|METH_KEYWORDS, os_chdir__doc__}, static PyObject * os_chdir_impl(PyObject *module, path_t *path); @@ -272,7 +272,7 @@ PyDoc_STRVAR(os_fchdir__doc__, "Equivalent to os.chdir(fd)."); #define OS_FCHDIR_METHODDEF \ - {"fchdir", (PyCFunction)os_fchdir, METH_FASTCALL, os_fchdir__doc__}, + {"fchdir", (PyCFunction)os_fchdir, METH_FASTCALL|METH_KEYWORDS, os_fchdir__doc__}, static PyObject * os_fchdir_impl(PyObject *module, int fd); @@ -324,7 +324,7 @@ PyDoc_STRVAR(os_chmod__doc__, " If they are unavailable, using them will raise a NotImplementedError."); #define OS_CHMOD_METHODDEF \ - {"chmod", (PyCFunction)os_chmod, METH_FASTCALL, os_chmod__doc__}, + {"chmod", (PyCFunction)os_chmod, METH_FASTCALL|METH_KEYWORDS, os_chmod__doc__}, static PyObject * os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd, @@ -365,7 +365,7 @@ PyDoc_STRVAR(os_fchmod__doc__, "Equivalent to os.chmod(fd, mode)."); #define OS_FCHMOD_METHODDEF \ - {"fchmod", (PyCFunction)os_fchmod, METH_FASTCALL, os_fchmod__doc__}, + {"fchmod", (PyCFunction)os_fchmod, METH_FASTCALL|METH_KEYWORDS, os_fchmod__doc__}, static PyObject * os_fchmod_impl(PyObject *module, int fd, int mode); @@ -403,7 +403,7 @@ PyDoc_STRVAR(os_lchmod__doc__, "Equivalent to chmod(path, mode, follow_symlinks=False).\""); #define OS_LCHMOD_METHODDEF \ - {"lchmod", (PyCFunction)os_lchmod, METH_FASTCALL, os_lchmod__doc__}, + {"lchmod", (PyCFunction)os_lchmod, METH_FASTCALL|METH_KEYWORDS, os_lchmod__doc__}, static PyObject * os_lchmod_impl(PyObject *module, path_t *path, int mode); @@ -447,7 +447,7 @@ PyDoc_STRVAR(os_chflags__doc__, "unavailable, using it will raise a NotImplementedError."); #define OS_CHFLAGS_METHODDEF \ - {"chflags", (PyCFunction)os_chflags, METH_FASTCALL, os_chflags__doc__}, + {"chflags", (PyCFunction)os_chflags, METH_FASTCALL|METH_KEYWORDS, os_chflags__doc__}, static PyObject * os_chflags_impl(PyObject *module, path_t *path, unsigned long flags, @@ -490,7 +490,7 @@ PyDoc_STRVAR(os_lchflags__doc__, "Equivalent to chflags(path, flags, follow_symlinks=False)."); #define OS_LCHFLAGS_METHODDEF \ - {"lchflags", (PyCFunction)os_lchflags, METH_FASTCALL, os_lchflags__doc__}, + {"lchflags", (PyCFunction)os_lchflags, METH_FASTCALL|METH_KEYWORDS, os_lchflags__doc__}, static PyObject * os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags); @@ -528,7 +528,7 @@ PyDoc_STRVAR(os_chroot__doc__, "Change root directory to path."); #define OS_CHROOT_METHODDEF \ - {"chroot", (PyCFunction)os_chroot, METH_FASTCALL, os_chroot__doc__}, + {"chroot", (PyCFunction)os_chroot, METH_FASTCALL|METH_KEYWORDS, os_chroot__doc__}, static PyObject * os_chroot_impl(PyObject *module, path_t *path); @@ -565,7 +565,7 @@ PyDoc_STRVAR(os_fsync__doc__, "Force write of fd to disk."); #define OS_FSYNC_METHODDEF \ - {"fsync", (PyCFunction)os_fsync, METH_FASTCALL, os_fsync__doc__}, + {"fsync", (PyCFunction)os_fsync, METH_FASTCALL|METH_KEYWORDS, os_fsync__doc__}, static PyObject * os_fsync_impl(PyObject *module, int fd); @@ -621,7 +621,7 @@ PyDoc_STRVAR(os_fdatasync__doc__, "Force write of fd to disk without forcing update of metadata."); #define OS_FDATASYNC_METHODDEF \ - {"fdatasync", (PyCFunction)os_fdatasync, METH_FASTCALL, os_fdatasync__doc__}, + {"fdatasync", (PyCFunction)os_fdatasync, METH_FASTCALL|METH_KEYWORDS, os_fdatasync__doc__}, static PyObject * os_fdatasync_impl(PyObject *module, int fd); @@ -679,7 +679,7 @@ PyDoc_STRVAR(os_chown__doc__, " If they are unavailable, using them will raise a NotImplementedError."); #define OS_CHOWN_METHODDEF \ - {"chown", (PyCFunction)os_chown, METH_FASTCALL, os_chown__doc__}, + {"chown", (PyCFunction)os_chown, METH_FASTCALL|METH_KEYWORDS, os_chown__doc__}, static PyObject * os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid, @@ -723,7 +723,7 @@ PyDoc_STRVAR(os_fchown__doc__, "Equivalent to os.chown(fd, uid, gid)."); #define OS_FCHOWN_METHODDEF \ - {"fchown", (PyCFunction)os_fchown, METH_FASTCALL, os_fchown__doc__}, + {"fchown", (PyCFunction)os_fchown, METH_FASTCALL|METH_KEYWORDS, os_fchown__doc__}, static PyObject * os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid); @@ -762,7 +762,7 @@ PyDoc_STRVAR(os_lchown__doc__, "Equivalent to os.chown(path, uid, gid, follow_symlinks=False)."); #define OS_LCHOWN_METHODDEF \ - {"lchown", (PyCFunction)os_lchown, METH_FASTCALL, os_lchown__doc__}, + {"lchown", (PyCFunction)os_lchown, METH_FASTCALL|METH_KEYWORDS, os_lchown__doc__}, static PyObject * os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid); @@ -848,7 +848,7 @@ PyDoc_STRVAR(os_link__doc__, " NotImplementedError."); #define OS_LINK_METHODDEF \ - {"link", (PyCFunction)os_link, METH_FASTCALL, os_link__doc__}, + {"link", (PyCFunction)os_link, METH_FASTCALL|METH_KEYWORDS, os_link__doc__}, static PyObject * os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, @@ -901,7 +901,7 @@ PyDoc_STRVAR(os_listdir__doc__, "entries \'.\' and \'..\' even if they are present in the directory."); #define OS_LISTDIR_METHODDEF \ - {"listdir", (PyCFunction)os_listdir, METH_FASTCALL, os_listdir__doc__}, + {"listdir", (PyCFunction)os_listdir, METH_FASTCALL|METH_KEYWORDS, os_listdir__doc__}, static PyObject * os_listdir_impl(PyObject *module, path_t *path); @@ -1034,7 +1034,7 @@ PyDoc_STRVAR(os__getvolumepathname__doc_ "A helper function for ismount on Win32."); #define OS__GETVOLUMEPATHNAME_METHODDEF \ - {"_getvolumepathname", (PyCFunction)os__getvolumepathname, METH_FASTCALL, os__getvolumepathname__doc__}, + {"_getvolumepathname", (PyCFunction)os__getvolumepathname, METH_FASTCALL|METH_KEYWORDS, os__getvolumepathname__doc__}, static PyObject * os__getvolumepathname_impl(PyObject *module, PyObject *path); @@ -1073,7 +1073,7 @@ PyDoc_STRVAR(os_mkdir__doc__, "The mode argument is ignored on Windows."); #define OS_MKDIR_METHODDEF \ - {"mkdir", (PyCFunction)os_mkdir, METH_FASTCALL, os_mkdir__doc__}, + {"mkdir", (PyCFunction)os_mkdir, METH_FASTCALL|METH_KEYWORDS, os_mkdir__doc__}, static PyObject * os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd); @@ -1141,7 +1141,7 @@ PyDoc_STRVAR(os_getpriority__doc__, "Return program scheduling priority."); #define OS_GETPRIORITY_METHODDEF \ - {"getpriority", (PyCFunction)os_getpriority, METH_FASTCALL, os_getpriority__doc__}, + {"getpriority", (PyCFunction)os_getpriority, METH_FASTCALL|METH_KEYWORDS, os_getpriority__doc__}, static PyObject * os_getpriority_impl(PyObject *module, int which, int who); @@ -1176,7 +1176,7 @@ PyDoc_STRVAR(os_setpriority__doc__, "Set program scheduling priority."); #define OS_SETPRIORITY_METHODDEF \ - {"setpriority", (PyCFunction)os_setpriority, METH_FASTCALL, os_setpriority__doc__}, + {"setpriority", (PyCFunction)os_setpriority, METH_FASTCALL|METH_KEYWORDS, os_setpriority__doc__}, static PyObject * os_setpriority_impl(PyObject *module, int which, int who, int priority); @@ -1216,7 +1216,7 @@ PyDoc_STRVAR(os_rename__doc__, " If they are unavailable, using them will raise a NotImplementedError."); #define OS_RENAME_METHODDEF \ - {"rename", (PyCFunction)os_rename, METH_FASTCALL, os_rename__doc__}, + {"rename", (PyCFunction)os_rename, METH_FASTCALL|METH_KEYWORDS, os_rename__doc__}, static PyObject * os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, @@ -1261,7 +1261,7 @@ PyDoc_STRVAR(os_replace__doc__, " If they are unavailable, using them will raise a NotImplementedError.\""); #define OS_REPLACE_METHODDEF \ - {"replace", (PyCFunction)os_replace, METH_FASTCALL, os_replace__doc__}, + {"replace", (PyCFunction)os_replace, METH_FASTCALL|METH_KEYWORDS, os_replace__doc__}, static PyObject * os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, @@ -1305,7 +1305,7 @@ PyDoc_STRVAR(os_rmdir__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_RMDIR_METHODDEF \ - {"rmdir", (PyCFunction)os_rmdir, METH_FASTCALL, os_rmdir__doc__}, + {"rmdir", (PyCFunction)os_rmdir, METH_FASTCALL|METH_KEYWORDS, os_rmdir__doc__}, static PyObject * os_rmdir_impl(PyObject *module, path_t *path, int dir_fd); @@ -1341,7 +1341,7 @@ PyDoc_STRVAR(os_system__doc__, "Execute the command in a subshell."); #define OS_SYSTEM_METHODDEF \ - {"system", (PyCFunction)os_system, METH_FASTCALL, os_system__doc__}, + {"system", (PyCFunction)os_system, METH_FASTCALL|METH_KEYWORDS, os_system__doc__}, static long os_system_impl(PyObject *module, Py_UNICODE *command); @@ -1380,7 +1380,7 @@ PyDoc_STRVAR(os_system__doc__, "Execute the command in a subshell."); #define OS_SYSTEM_METHODDEF \ - {"system", (PyCFunction)os_system, METH_FASTCALL, os_system__doc__}, + {"system", (PyCFunction)os_system, METH_FASTCALL|METH_KEYWORDS, os_system__doc__}, static long os_system_impl(PyObject *module, PyObject *command); @@ -1452,7 +1452,7 @@ PyDoc_STRVAR(os_unlink__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_UNLINK_METHODDEF \ - {"unlink", (PyCFunction)os_unlink, METH_FASTCALL, os_unlink__doc__}, + {"unlink", (PyCFunction)os_unlink, METH_FASTCALL|METH_KEYWORDS, os_unlink__doc__}, static PyObject * os_unlink_impl(PyObject *module, path_t *path, int dir_fd); @@ -1491,7 +1491,7 @@ PyDoc_STRVAR(os_remove__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_REMOVE_METHODDEF \ - {"remove", (PyCFunction)os_remove, METH_FASTCALL, os_remove__doc__}, + {"remove", (PyCFunction)os_remove, METH_FASTCALL|METH_KEYWORDS, os_remove__doc__}, static PyObject * os_remove_impl(PyObject *module, path_t *path, int dir_fd); @@ -1573,7 +1573,7 @@ PyDoc_STRVAR(os_utime__doc__, " If they are unavailable, using them will raise a NotImplementedError."); #define OS_UTIME_METHODDEF \ - {"utime", (PyCFunction)os_utime, METH_FASTCALL, os_utime__doc__}, + {"utime", (PyCFunction)os_utime, METH_FASTCALL|METH_KEYWORDS, os_utime__doc__}, static PyObject * os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns, @@ -1611,7 +1611,7 @@ PyDoc_STRVAR(os__exit__doc__, "Exit to the system with specified status, without normal exit processing."); #define OS__EXIT_METHODDEF \ - {"_exit", (PyCFunction)os__exit, METH_FASTCALL, os__exit__doc__}, + {"_exit", (PyCFunction)os__exit, METH_FASTCALL|METH_KEYWORDS, os__exit__doc__}, static PyObject * os__exit_impl(PyObject *module, int status); @@ -1654,7 +1654,7 @@ static PyObject * os_execv_impl(PyObject *module, path_t *path, PyObject *argv); static PyObject * -os_execv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_execv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; path_t path = PATH_T_INITIALIZE("execv", "path", 0, 0); @@ -1664,10 +1664,6 @@ os_execv(PyObject *module, PyObject **ar path_converter, &path, &argv)) { goto exit; } - - if (!_PyArg_NoStackKeywords("execv", kwnames)) { - goto exit; - } return_value = os_execv_impl(module, &path, argv); exit: @@ -1695,7 +1691,7 @@ PyDoc_STRVAR(os_execve__doc__, " Dictionary of strings mapping to strings."); #define OS_EXECVE_METHODDEF \ - {"execve", (PyCFunction)os_execve, METH_FASTCALL, os_execve__doc__}, + {"execve", (PyCFunction)os_execve, METH_FASTCALL|METH_KEYWORDS, os_execve__doc__}, static PyObject * os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env); @@ -1747,7 +1743,7 @@ static PyObject * os_spawnv_impl(PyObject *module, int mode, path_t *path, PyObject *argv); static PyObject * -os_spawnv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_spawnv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int mode; @@ -1758,10 +1754,6 @@ os_spawnv(PyObject *module, PyObject **a &mode, path_converter, &path, &argv)) { goto exit; } - - if (!_PyArg_NoStackKeywords("spawnv", kwnames)) { - goto exit; - } return_value = os_spawnv_impl(module, mode, &path, argv); exit: @@ -1798,7 +1790,7 @@ os_spawnve_impl(PyObject *module, int mo PyObject *env); static PyObject * -os_spawnve(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_spawnve(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int mode; @@ -1810,10 +1802,6 @@ os_spawnve(PyObject *module, PyObject ** &mode, path_converter, &path, &argv, &env)) { goto exit; } - - if (!_PyArg_NoStackKeywords("spawnve", kwnames)) { - goto exit; - } return_value = os_spawnve_impl(module, mode, &path, argv, env); exit: @@ -1882,7 +1870,7 @@ PyDoc_STRVAR(os_sched_get_priority_max__ "Get the maximum scheduling priority for policy."); #define OS_SCHED_GET_PRIORITY_MAX_METHODDEF \ - {"sched_get_priority_max", (PyCFunction)os_sched_get_priority_max, METH_FASTCALL, os_sched_get_priority_max__doc__}, + {"sched_get_priority_max", (PyCFunction)os_sched_get_priority_max, METH_FASTCALL|METH_KEYWORDS, os_sched_get_priority_max__doc__}, static PyObject * os_sched_get_priority_max_impl(PyObject *module, int policy); @@ -1916,7 +1904,7 @@ PyDoc_STRVAR(os_sched_get_priority_min__ "Get the minimum scheduling priority for policy."); #define OS_SCHED_GET_PRIORITY_MIN_METHODDEF \ - {"sched_get_priority_min", (PyCFunction)os_sched_get_priority_min, METH_FASTCALL, os_sched_get_priority_min__doc__}, + {"sched_get_priority_min", (PyCFunction)os_sched_get_priority_min, METH_FASTCALL|METH_KEYWORDS, os_sched_get_priority_min__doc__}, static PyObject * os_sched_get_priority_min_impl(PyObject *module, int policy); @@ -2027,7 +2015,7 @@ os_sched_setscheduler_impl(PyObject *mod struct sched_param *param); static PyObject * -os_sched_setscheduler(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_sched_setscheduler(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pid; @@ -2038,10 +2026,6 @@ os_sched_setscheduler(PyObject *module, &pid, &policy, convert_sched_param, ¶m)) { goto exit; } - - if (!_PyArg_NoStackKeywords("sched_setscheduler", kwnames)) { - goto exit; - } return_value = os_sched_setscheduler_impl(module, pid, policy, ¶m); exit: @@ -2103,7 +2087,7 @@ os_sched_setparam_impl(PyObject *module, struct sched_param *param); static PyObject * -os_sched_setparam(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_sched_setparam(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pid; @@ -2113,10 +2097,6 @@ os_sched_setparam(PyObject *module, PyOb &pid, convert_sched_param, ¶m)) { goto exit; } - - if (!_PyArg_NoStackKeywords("sched_setparam", kwnames)) { - goto exit; - } return_value = os_sched_setparam_impl(module, pid, ¶m); exit: @@ -2202,7 +2182,7 @@ static PyObject * os_sched_setaffinity_impl(PyObject *module, pid_t pid, PyObject *mask); static PyObject * -os_sched_setaffinity(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_sched_setaffinity(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pid; @@ -2212,10 +2192,6 @@ os_sched_setaffinity(PyObject *module, P &pid, &mask)) { goto exit; } - - if (!_PyArg_NoStackKeywords("sched_setaffinity", kwnames)) { - goto exit; - } return_value = os_sched_setaffinity_impl(module, pid, mask); exit: @@ -2428,7 +2404,7 @@ PyDoc_STRVAR(os_getpgid__doc__, "Call the system call getpgid(), and return the result."); #define OS_GETPGID_METHODDEF \ - {"getpgid", (PyCFunction)os_getpgid, METH_FASTCALL, os_getpgid__doc__}, + {"getpgid", (PyCFunction)os_getpgid, METH_FASTCALL|METH_KEYWORDS, os_getpgid__doc__}, static PyObject * os_getpgid_impl(PyObject *module, pid_t pid); @@ -2581,7 +2557,7 @@ static PyObject * os_kill_impl(PyObject *module, pid_t pid, Py_ssize_t signal); static PyObject * -os_kill(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_kill(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pid; @@ -2591,10 +2567,6 @@ os_kill(PyObject *module, PyObject **arg &pid, &signal)) { goto exit; } - - if (!_PyArg_NoStackKeywords("kill", kwnames)) { - goto exit; - } return_value = os_kill_impl(module, pid, signal); exit: @@ -2618,7 +2590,7 @@ static PyObject * os_killpg_impl(PyObject *module, pid_t pgid, int signal); static PyObject * -os_killpg(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_killpg(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pgid; @@ -2628,10 +2600,6 @@ os_killpg(PyObject *module, PyObject **a &pgid, &signal)) { goto exit; } - - if (!_PyArg_NoStackKeywords("killpg", kwnames)) { - goto exit; - } return_value = os_killpg_impl(module, pgid, signal); exit: @@ -2779,7 +2747,7 @@ static PyObject * os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid); static PyObject * -os_setreuid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_setreuid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; uid_t ruid; @@ -2789,10 +2757,6 @@ os_setreuid(PyObject *module, PyObject * _Py_Uid_Converter, &ruid, _Py_Uid_Converter, &euid)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setreuid", kwnames)) { - goto exit; - } return_value = os_setreuid_impl(module, ruid, euid); exit: @@ -2816,7 +2780,7 @@ static PyObject * os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid); static PyObject * -os_setregid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_setregid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; gid_t rgid; @@ -2826,10 +2790,6 @@ os_setregid(PyObject *module, PyObject * _Py_Gid_Converter, &rgid, _Py_Gid_Converter, &egid)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setregid", kwnames)) { - goto exit; - } return_value = os_setregid_impl(module, rgid, egid); exit: @@ -2894,7 +2854,7 @@ PyDoc_STRVAR(os_wait3__doc__, " (pid, status, rusage)"); #define OS_WAIT3_METHODDEF \ - {"wait3", (PyCFunction)os_wait3, METH_FASTCALL, os_wait3__doc__}, + {"wait3", (PyCFunction)os_wait3, METH_FASTCALL|METH_KEYWORDS, os_wait3__doc__}, static PyObject * os_wait3_impl(PyObject *module, int options); @@ -2931,7 +2891,7 @@ PyDoc_STRVAR(os_wait4__doc__, " (pid, status, rusage)"); #define OS_WAIT4_METHODDEF \ - {"wait4", (PyCFunction)os_wait4, METH_FASTCALL, os_wait4__doc__}, + {"wait4", (PyCFunction)os_wait4, METH_FASTCALL|METH_KEYWORDS, os_wait4__doc__}, static PyObject * os_wait4_impl(PyObject *module, pid_t pid, int options); @@ -2983,7 +2943,7 @@ static PyObject * os_waitid_impl(PyObject *module, idtype_t idtype, id_t id, int options); static PyObject * -os_waitid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_waitid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; idtype_t idtype; @@ -2994,10 +2954,6 @@ os_waitid(PyObject *module, PyObject **a &idtype, &id, &options)) { goto exit; } - - if (!_PyArg_NoStackKeywords("waitid", kwnames)) { - goto exit; - } return_value = os_waitid_impl(module, idtype, id, options); exit: @@ -3026,7 +2982,7 @@ static PyObject * os_waitpid_impl(PyObject *module, pid_t pid, int options); static PyObject * -os_waitpid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_waitpid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pid; @@ -3036,10 +2992,6 @@ os_waitpid(PyObject *module, PyObject ** &pid, &options)) { goto exit; } - - if (!_PyArg_NoStackKeywords("waitpid", kwnames)) { - goto exit; - } return_value = os_waitpid_impl(module, pid, options); exit: @@ -3068,7 +3020,7 @@ static PyObject * os_waitpid_impl(PyObject *module, intptr_t pid, int options); static PyObject * -os_waitpid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_waitpid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; intptr_t pid; @@ -3078,10 +3030,6 @@ os_waitpid(PyObject *module, PyObject ** &pid, &options)) { goto exit; } - - if (!_PyArg_NoStackKeywords("waitpid", kwnames)) { - goto exit; - } return_value = os_waitpid_impl(module, pid, options); exit: @@ -3134,7 +3082,7 @@ PyDoc_STRVAR(os_symlink__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_SYMLINK_METHODDEF \ - {"symlink", (PyCFunction)os_symlink, METH_FASTCALL, os_symlink__doc__}, + {"symlink", (PyCFunction)os_symlink, METH_FASTCALL|METH_KEYWORDS, os_symlink__doc__}, static PyObject * os_symlink_impl(PyObject *module, path_t *src, path_t *dst, @@ -3262,7 +3210,7 @@ static PyObject * os_setpgid_impl(PyObject *module, pid_t pid, pid_t pgrp); static PyObject * -os_setpgid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_setpgid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; pid_t pid; @@ -3272,10 +3220,6 @@ os_setpgid(PyObject *module, PyObject ** &pid, &pgrp)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setpgid", kwnames)) { - goto exit; - } return_value = os_setpgid_impl(module, pid, pgrp); exit: @@ -3330,7 +3274,7 @@ static PyObject * os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid); static PyObject * -os_tcsetpgrp(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_tcsetpgrp(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3340,10 +3284,6 @@ os_tcsetpgrp(PyObject *module, PyObject &fd, &pgid)) { goto exit; } - - if (!_PyArg_NoStackKeywords("tcsetpgrp", kwnames)) { - goto exit; - } return_value = os_tcsetpgrp_impl(module, fd, pgid); exit: @@ -3364,7 +3304,7 @@ PyDoc_STRVAR(os_open__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_OPEN_METHODDEF \ - {"open", (PyCFunction)os_open, METH_FASTCALL, os_open__doc__}, + {"open", (PyCFunction)os_open, METH_FASTCALL|METH_KEYWORDS, os_open__doc__}, static int os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd); @@ -3405,7 +3345,7 @@ PyDoc_STRVAR(os_close__doc__, "Close a file descriptor."); #define OS_CLOSE_METHODDEF \ - {"close", (PyCFunction)os_close, METH_FASTCALL, os_close__doc__}, + {"close", (PyCFunction)os_close, METH_FASTCALL|METH_KEYWORDS, os_close__doc__}, static PyObject * os_close_impl(PyObject *module, int fd); @@ -3441,7 +3381,7 @@ static PyObject * os_closerange_impl(PyObject *module, int fd_low, int fd_high); static PyObject * -os_closerange(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_closerange(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd_low; @@ -3451,10 +3391,6 @@ os_closerange(PyObject *module, PyObject &fd_low, &fd_high)) { goto exit; } - - if (!_PyArg_NoStackKeywords("closerange", kwnames)) { - goto exit; - } return_value = os_closerange_impl(module, fd_low, fd_high); exit: @@ -3500,7 +3436,7 @@ PyDoc_STRVAR(os_dup2__doc__, "Duplicate file descriptor."); #define OS_DUP2_METHODDEF \ - {"dup2", (PyCFunction)os_dup2, METH_FASTCALL, os_dup2__doc__}, + {"dup2", (PyCFunction)os_dup2, METH_FASTCALL|METH_KEYWORDS, os_dup2__doc__}, static PyObject * os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable); @@ -3547,7 +3483,7 @@ static PyObject * os_lockf_impl(PyObject *module, int fd, int command, Py_off_t length); static PyObject * -os_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3558,10 +3494,6 @@ os_lockf(PyObject *module, PyObject **ar &fd, &command, Py_off_t_converter, &length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lockf", kwnames)) { - goto exit; - } return_value = os_lockf_impl(module, fd, command, length); exit: @@ -3586,7 +3518,7 @@ static Py_off_t os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how); static PyObject * -os_lseek(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_lseek(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3598,10 +3530,6 @@ os_lseek(PyObject *module, PyObject **ar &fd, Py_off_t_converter, &position, &how)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lseek", kwnames)) { - goto exit; - } _return_value = os_lseek_impl(module, fd, position, how); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -3625,7 +3553,7 @@ static PyObject * os_read_impl(PyObject *module, int fd, Py_ssize_t length); static PyObject * -os_read(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_read(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3635,10 +3563,6 @@ os_read(PyObject *module, PyObject **arg &fd, &length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("read", kwnames)) { - goto exit; - } return_value = os_read_impl(module, fd, length); exit: @@ -3668,7 +3592,7 @@ static Py_ssize_t os_readv_impl(PyObject *module, int fd, PyObject *buffers); static PyObject * -os_readv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_readv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3679,10 +3603,6 @@ os_readv(PyObject *module, PyObject **ar &fd, &buffers)) { goto exit; } - - if (!_PyArg_NoStackKeywords("readv", kwnames)) { - goto exit; - } _return_value = os_readv_impl(module, fd, buffers); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -3713,7 +3633,7 @@ static PyObject * os_pread_impl(PyObject *module, int fd, int length, Py_off_t offset); static PyObject * -os_pread(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_pread(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3724,10 +3644,6 @@ os_pread(PyObject *module, PyObject **ar &fd, &length, Py_off_t_converter, &offset)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pread", kwnames)) { - goto exit; - } return_value = os_pread_impl(module, fd, length, offset); exit: @@ -3749,7 +3665,7 @@ static Py_ssize_t os_write_impl(PyObject *module, int fd, Py_buffer *data); static PyObject * -os_write(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_write(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3760,10 +3676,6 @@ os_write(PyObject *module, PyObject **ar &fd, &data)) { goto exit; } - - if (!_PyArg_NoStackKeywords("write", kwnames)) { - goto exit; - } _return_value = os_write_impl(module, fd, &data); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -3789,7 +3701,7 @@ PyDoc_STRVAR(os_fstat__doc__, "Equivalent to os.stat(fd)."); #define OS_FSTAT_METHODDEF \ - {"fstat", (PyCFunction)os_fstat, METH_FASTCALL, os_fstat__doc__}, + {"fstat", (PyCFunction)os_fstat, METH_FASTCALL|METH_KEYWORDS, os_fstat__doc__}, static PyObject * os_fstat_impl(PyObject *module, int fd); @@ -3927,7 +3839,7 @@ static Py_ssize_t os_writev_impl(PyObject *module, int fd, PyObject *buffers); static PyObject * -os_writev(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_writev(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3938,10 +3850,6 @@ os_writev(PyObject *module, PyObject **a &fd, &buffers)) { goto exit; } - - if (!_PyArg_NoStackKeywords("writev", kwnames)) { - goto exit; - } _return_value = os_writev_impl(module, fd, buffers); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -3973,7 +3881,7 @@ static Py_ssize_t os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset); static PyObject * -os_pwrite(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_pwrite(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -3985,10 +3893,6 @@ os_pwrite(PyObject *module, PyObject **a &fd, &buffer, Py_off_t_converter, &offset)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pwrite", kwnames)) { - goto exit; - } _return_value = os_pwrite_impl(module, fd, &buffer, offset); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -4020,7 +3924,7 @@ PyDoc_STRVAR(os_mkfifo__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_MKFIFO_METHODDEF \ - {"mkfifo", (PyCFunction)os_mkfifo, METH_FASTCALL, os_mkfifo__doc__}, + {"mkfifo", (PyCFunction)os_mkfifo, METH_FASTCALL|METH_KEYWORDS, os_mkfifo__doc__}, static PyObject * os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd); @@ -4071,7 +3975,7 @@ PyDoc_STRVAR(os_mknod__doc__, " If it is unavailable, using it will raise a NotImplementedError."); #define OS_MKNOD_METHODDEF \ - {"mknod", (PyCFunction)os_mknod, METH_FASTCALL, os_mknod__doc__}, + {"mknod", (PyCFunction)os_mknod, METH_FASTCALL|METH_KEYWORDS, os_mknod__doc__}, static PyObject * os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device, @@ -4190,7 +4094,7 @@ static dev_t os_makedev_impl(PyObject *module, int major, int minor); static PyObject * -os_makedev(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_makedev(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int major; @@ -4201,10 +4105,6 @@ os_makedev(PyObject *module, PyObject ** &major, &minor)) { goto exit; } - - if (!_PyArg_NoStackKeywords("makedev", kwnames)) { - goto exit; - } _return_value = os_makedev_impl(module, major, minor); if ((_return_value == (dev_t)-1) && PyErr_Occurred()) { goto exit; @@ -4232,7 +4132,7 @@ static PyObject * os_ftruncate_impl(PyObject *module, int fd, Py_off_t length); static PyObject * -os_ftruncate(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_ftruncate(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -4242,10 +4142,6 @@ os_ftruncate(PyObject *module, PyObject &fd, Py_off_t_converter, &length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ftruncate", kwnames)) { - goto exit; - } return_value = os_ftruncate_impl(module, fd, length); exit: @@ -4266,7 +4162,7 @@ PyDoc_STRVAR(os_truncate__doc__, " If this functionality is unavailable, using it raises an exception."); #define OS_TRUNCATE_METHODDEF \ - {"truncate", (PyCFunction)os_truncate, METH_FASTCALL, os_truncate__doc__}, + {"truncate", (PyCFunction)os_truncate, METH_FASTCALL|METH_KEYWORDS, os_truncate__doc__}, static PyObject * os_truncate_impl(PyObject *module, path_t *path, Py_off_t length); @@ -4314,7 +4210,7 @@ os_posix_fallocate_impl(PyObject *module Py_off_t length); static PyObject * -os_posix_fallocate(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_posix_fallocate(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -4325,10 +4221,6 @@ os_posix_fallocate(PyObject *module, PyO &fd, Py_off_t_converter, &offset, Py_off_t_converter, &length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("posix_fallocate", kwnames)) { - goto exit; - } return_value = os_posix_fallocate_impl(module, fd, offset, length); exit: @@ -4361,7 +4253,7 @@ os_posix_fadvise_impl(PyObject *module, Py_off_t length, int advice); static PyObject * -os_posix_fadvise(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_posix_fadvise(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -4373,10 +4265,6 @@ os_posix_fadvise(PyObject *module, PyObj &fd, Py_off_t_converter, &offset, Py_off_t_converter, &length, &advice)) { goto exit; } - - if (!_PyArg_NoStackKeywords("posix_fadvise", kwnames)) { - goto exit; - } return_value = os_posix_fadvise_impl(module, fd, offset, length, advice); exit: @@ -4400,7 +4288,7 @@ static PyObject * os_putenv_impl(PyObject *module, PyObject *name, PyObject *value); static PyObject * -os_putenv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_putenv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *name; @@ -4410,10 +4298,6 @@ os_putenv(PyObject *module, PyObject **a &name, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("putenv", kwnames)) { - goto exit; - } return_value = os_putenv_impl(module, name, value); exit: @@ -4437,7 +4321,7 @@ static PyObject * os_putenv_impl(PyObject *module, PyObject *name, PyObject *value); static PyObject * -os_putenv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_putenv(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *name = NULL; @@ -4447,10 +4331,6 @@ os_putenv(PyObject *module, PyObject **a PyUnicode_FSConverter, &name, PyUnicode_FSConverter, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("putenv", kwnames)) { - goto exit; - } return_value = os_putenv_impl(module, name, value); exit: @@ -4573,7 +4453,7 @@ PyDoc_STRVAR(os_WIFCONTINUED__doc__, "job control stop."); #define OS_WIFCONTINUED_METHODDEF \ - {"WIFCONTINUED", (PyCFunction)os_WIFCONTINUED, METH_FASTCALL, os_WIFCONTINUED__doc__}, + {"WIFCONTINUED", (PyCFunction)os_WIFCONTINUED, METH_FASTCALL|METH_KEYWORDS, os_WIFCONTINUED__doc__}, static int os_WIFCONTINUED_impl(PyObject *module, int status); @@ -4612,7 +4492,7 @@ PyDoc_STRVAR(os_WIFSTOPPED__doc__, "Return True if the process returning status was stopped."); #define OS_WIFSTOPPED_METHODDEF \ - {"WIFSTOPPED", (PyCFunction)os_WIFSTOPPED, METH_FASTCALL, os_WIFSTOPPED__doc__}, + {"WIFSTOPPED", (PyCFunction)os_WIFSTOPPED, METH_FASTCALL|METH_KEYWORDS, os_WIFSTOPPED__doc__}, static int os_WIFSTOPPED_impl(PyObject *module, int status); @@ -4651,7 +4531,7 @@ PyDoc_STRVAR(os_WIFSIGNALED__doc__, "Return True if the process returning status was terminated by a signal."); #define OS_WIFSIGNALED_METHODDEF \ - {"WIFSIGNALED", (PyCFunction)os_WIFSIGNALED, METH_FASTCALL, os_WIFSIGNALED__doc__}, + {"WIFSIGNALED", (PyCFunction)os_WIFSIGNALED, METH_FASTCALL|METH_KEYWORDS, os_WIFSIGNALED__doc__}, static int os_WIFSIGNALED_impl(PyObject *module, int status); @@ -4690,7 +4570,7 @@ PyDoc_STRVAR(os_WIFEXITED__doc__, "Return True if the process returning status exited via the exit() system call."); #define OS_WIFEXITED_METHODDEF \ - {"WIFEXITED", (PyCFunction)os_WIFEXITED, METH_FASTCALL, os_WIFEXITED__doc__}, + {"WIFEXITED", (PyCFunction)os_WIFEXITED, METH_FASTCALL|METH_KEYWORDS, os_WIFEXITED__doc__}, static int os_WIFEXITED_impl(PyObject *module, int status); @@ -4729,7 +4609,7 @@ PyDoc_STRVAR(os_WEXITSTATUS__doc__, "Return the process return code from status."); #define OS_WEXITSTATUS_METHODDEF \ - {"WEXITSTATUS", (PyCFunction)os_WEXITSTATUS, METH_FASTCALL, os_WEXITSTATUS__doc__}, + {"WEXITSTATUS", (PyCFunction)os_WEXITSTATUS, METH_FASTCALL|METH_KEYWORDS, os_WEXITSTATUS__doc__}, static int os_WEXITSTATUS_impl(PyObject *module, int status); @@ -4768,7 +4648,7 @@ PyDoc_STRVAR(os_WTERMSIG__doc__, "Return the signal that terminated the process that provided the status value."); #define OS_WTERMSIG_METHODDEF \ - {"WTERMSIG", (PyCFunction)os_WTERMSIG, METH_FASTCALL, os_WTERMSIG__doc__}, + {"WTERMSIG", (PyCFunction)os_WTERMSIG, METH_FASTCALL|METH_KEYWORDS, os_WTERMSIG__doc__}, static int os_WTERMSIG_impl(PyObject *module, int status); @@ -4807,7 +4687,7 @@ PyDoc_STRVAR(os_WSTOPSIG__doc__, "Return the signal that stopped the process that provided the status value."); #define OS_WSTOPSIG_METHODDEF \ - {"WSTOPSIG", (PyCFunction)os_WSTOPSIG, METH_FASTCALL, os_WSTOPSIG__doc__}, + {"WSTOPSIG", (PyCFunction)os_WSTOPSIG, METH_FASTCALL|METH_KEYWORDS, os_WSTOPSIG__doc__}, static int os_WSTOPSIG_impl(PyObject *module, int status); @@ -4883,7 +4763,7 @@ PyDoc_STRVAR(os_statvfs__doc__, " If this functionality is unavailable, using it raises an exception."); #define OS_STATVFS_METHODDEF \ - {"statvfs", (PyCFunction)os_statvfs, METH_FASTCALL, os_statvfs__doc__}, + {"statvfs", (PyCFunction)os_statvfs, METH_FASTCALL|METH_KEYWORDS, os_statvfs__doc__}, static PyObject * os_statvfs_impl(PyObject *module, path_t *path); @@ -4920,7 +4800,7 @@ PyDoc_STRVAR(os__getdiskusage__doc__, "Return disk usage statistics about the given path as a (total, free) tuple."); #define OS__GETDISKUSAGE_METHODDEF \ - {"_getdiskusage", (PyCFunction)os__getdiskusage, METH_FASTCALL, os__getdiskusage__doc__}, + {"_getdiskusage", (PyCFunction)os__getdiskusage, METH_FASTCALL|METH_KEYWORDS, os__getdiskusage__doc__}, static PyObject * os__getdiskusage_impl(PyObject *module, Py_UNICODE *path); @@ -4962,7 +4842,7 @@ static long os_fpathconf_impl(PyObject *module, int fd, int name); static PyObject * -os_fpathconf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_fpathconf(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -4973,10 +4853,6 @@ os_fpathconf(PyObject *module, PyObject &fd, conv_path_confname, &name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("fpathconf", kwnames)) { - goto exit; - } _return_value = os_fpathconf_impl(module, fd, name); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -5002,7 +4878,7 @@ PyDoc_STRVAR(os_pathconf__doc__, " If this functionality is unavailable, using it raises an exception."); #define OS_PATHCONF_METHODDEF \ - {"pathconf", (PyCFunction)os_pathconf, METH_FASTCALL, os_pathconf__doc__}, + {"pathconf", (PyCFunction)os_pathconf, METH_FASTCALL|METH_KEYWORDS, os_pathconf__doc__}, static long os_pathconf_impl(PyObject *module, path_t *path, int name); @@ -5150,7 +5026,7 @@ PyDoc_STRVAR(os_startfile__doc__, "the underlying Win32 ShellExecute function doesn\'t work if it is."); #define OS_STARTFILE_METHODDEF \ - {"startfile", (PyCFunction)os_startfile, METH_FASTCALL, os_startfile__doc__}, + {"startfile", (PyCFunction)os_startfile, METH_FASTCALL|METH_KEYWORDS, os_startfile__doc__}, static PyObject * os_startfile_impl(PyObject *module, path_t *filepath, Py_UNICODE *operation); @@ -5215,7 +5091,7 @@ PyDoc_STRVAR(os_device_encoding__doc__, "If the device is not a terminal, return None."); #define OS_DEVICE_ENCODING_METHODDEF \ - {"device_encoding", (PyCFunction)os_device_encoding, METH_FASTCALL, os_device_encoding__doc__}, + {"device_encoding", (PyCFunction)os_device_encoding, METH_FASTCALL|METH_KEYWORDS, os_device_encoding__doc__}, static PyObject * os_device_encoding_impl(PyObject *module, int fd); @@ -5253,7 +5129,7 @@ static PyObject * os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid); static PyObject * -os_setresuid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_setresuid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; uid_t ruid; @@ -5264,10 +5140,6 @@ os_setresuid(PyObject *module, PyObject _Py_Uid_Converter, &ruid, _Py_Uid_Converter, &euid, _Py_Uid_Converter, &suid)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setresuid", kwnames)) { - goto exit; - } return_value = os_setresuid_impl(module, ruid, euid, suid); exit: @@ -5291,7 +5163,7 @@ static PyObject * os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid); static PyObject * -os_setresgid(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_setresgid(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; gid_t rgid; @@ -5302,10 +5174,6 @@ os_setresgid(PyObject *module, PyObject _Py_Gid_Converter, &rgid, _Py_Gid_Converter, &egid, _Py_Gid_Converter, &sgid)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setresgid", kwnames)) { - goto exit; - } return_value = os_setresgid_impl(module, rgid, egid, sgid); exit: @@ -5372,7 +5240,7 @@ PyDoc_STRVAR(os_getxattr__doc__, " the link points to."); #define OS_GETXATTR_METHODDEF \ - {"getxattr", (PyCFunction)os_getxattr, METH_FASTCALL, os_getxattr__doc__}, + {"getxattr", (PyCFunction)os_getxattr, METH_FASTCALL|METH_KEYWORDS, os_getxattr__doc__}, static PyObject * os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute, @@ -5420,7 +5288,7 @@ PyDoc_STRVAR(os_setxattr__doc__, " the link points to."); #define OS_SETXATTR_METHODDEF \ - {"setxattr", (PyCFunction)os_setxattr, METH_FASTCALL, os_setxattr__doc__}, + {"setxattr", (PyCFunction)os_setxattr, METH_FASTCALL|METH_KEYWORDS, os_setxattr__doc__}, static PyObject * os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute, @@ -5473,7 +5341,7 @@ PyDoc_STRVAR(os_removexattr__doc__, " the link points to."); #define OS_REMOVEXATTR_METHODDEF \ - {"removexattr", (PyCFunction)os_removexattr, METH_FASTCALL, os_removexattr__doc__}, + {"removexattr", (PyCFunction)os_removexattr, METH_FASTCALL|METH_KEYWORDS, os_removexattr__doc__}, static PyObject * os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute, @@ -5521,7 +5389,7 @@ PyDoc_STRVAR(os_listxattr__doc__, " the link points to."); #define OS_LISTXATTR_METHODDEF \ - {"listxattr", (PyCFunction)os_listxattr, METH_FASTCALL, os_listxattr__doc__}, + {"listxattr", (PyCFunction)os_listxattr, METH_FASTCALL|METH_KEYWORDS, os_listxattr__doc__}, static PyObject * os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks); @@ -5644,7 +5512,7 @@ static PyObject * os_set_inheritable_impl(PyObject *module, int fd, int inheritable); static PyObject * -os_set_inheritable(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_set_inheritable(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -5654,10 +5522,6 @@ os_set_inheritable(PyObject *module, PyO &fd, &inheritable)) { goto exit; } - - if (!_PyArg_NoStackKeywords("set_inheritable", kwnames)) { - goto exit; - } return_value = os_set_inheritable_impl(module, fd, inheritable); exit: @@ -5716,7 +5580,7 @@ os_set_handle_inheritable_impl(PyObject int inheritable); static PyObject * -os_set_handle_inheritable(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +os_set_handle_inheritable(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; intptr_t handle; @@ -5726,10 +5590,6 @@ os_set_handle_inheritable(PyObject *modu &handle, &inheritable)) { goto exit; } - - if (!_PyArg_NoStackKeywords("set_handle_inheritable", kwnames)) { - goto exit; - } return_value = os_set_handle_inheritable_impl(module, handle, inheritable); exit: @@ -5773,7 +5633,7 @@ PyDoc_STRVAR(os_DirEntry_stat__doc__, "Return stat_result object for the entry; cached per entry."); #define OS_DIRENTRY_STAT_METHODDEF \ - {"stat", (PyCFunction)os_DirEntry_stat, METH_FASTCALL, os_DirEntry_stat__doc__}, + {"stat", (PyCFunction)os_DirEntry_stat, METH_FASTCALL|METH_KEYWORDS, os_DirEntry_stat__doc__}, static PyObject * os_DirEntry_stat_impl(DirEntry *self, int follow_symlinks); @@ -5803,7 +5663,7 @@ PyDoc_STRVAR(os_DirEntry_is_dir__doc__, "Return True if the entry is a directory; cached per entry."); #define OS_DIRENTRY_IS_DIR_METHODDEF \ - {"is_dir", (PyCFunction)os_DirEntry_is_dir, METH_FASTCALL, os_DirEntry_is_dir__doc__}, + {"is_dir", (PyCFunction)os_DirEntry_is_dir, METH_FASTCALL|METH_KEYWORDS, os_DirEntry_is_dir__doc__}, static int os_DirEntry_is_dir_impl(DirEntry *self, int follow_symlinks); @@ -5838,7 +5698,7 @@ PyDoc_STRVAR(os_DirEntry_is_file__doc__, "Return True if the entry is a file; cached per entry."); #define OS_DIRENTRY_IS_FILE_METHODDEF \ - {"is_file", (PyCFunction)os_DirEntry_is_file, METH_FASTCALL, os_DirEntry_is_file__doc__}, + {"is_file", (PyCFunction)os_DirEntry_is_file, METH_FASTCALL|METH_KEYWORDS, os_DirEntry_is_file__doc__}, static int os_DirEntry_is_file_impl(DirEntry *self, int follow_symlinks); @@ -5915,7 +5775,7 @@ PyDoc_STRVAR(os_scandir__doc__, "If path is None, uses the path=\'.\'."); #define OS_SCANDIR_METHODDEF \ - {"scandir", (PyCFunction)os_scandir, METH_FASTCALL, os_scandir__doc__}, + {"scandir", (PyCFunction)os_scandir, METH_FASTCALL|METH_KEYWORDS, os_scandir__doc__}, static PyObject * os_scandir_impl(PyObject *module, path_t *path); @@ -5952,7 +5812,7 @@ PyDoc_STRVAR(os_fspath__doc__, "types raise a TypeError."); #define OS_FSPATH_METHODDEF \ - {"fspath", (PyCFunction)os_fspath, METH_FASTCALL, os_fspath__doc__}, + {"fspath", (PyCFunction)os_fspath, METH_FASTCALL|METH_KEYWORDS, os_fspath__doc__}, static PyObject * os_fspath_impl(PyObject *module, PyObject *path); @@ -5984,7 +5844,7 @@ PyDoc_STRVAR(os_getrandom__doc__, "Obtain a series of random bytes."); #define OS_GETRANDOM_METHODDEF \ - {"getrandom", (PyCFunction)os_getrandom, METH_FASTCALL, os_getrandom__doc__}, + {"getrandom", (PyCFunction)os_getrandom, METH_FASTCALL|METH_KEYWORDS, os_getrandom__doc__}, static PyObject * os_getrandom_impl(PyObject *module, Py_ssize_t size, int flags); @@ -6493,4 +6353,4 @@ exit: #ifndef OS_GETRANDOM_METHODDEF #define OS_GETRANDOM_METHODDEF #endif /* !defined(OS_GETRANDOM_METHODDEF) */ -/*[clinic end generated code: output=5a0be969e3f71660 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=06ca08eeb2aff2ff input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/pyexpat.c.h --- a/Modules/clinic/pyexpat.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/pyexpat.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -18,7 +18,7 @@ pyexpat_xmlparser_Parse_impl(xmlparseobj int isfinal); static PyObject * -pyexpat_xmlparser_Parse(xmlparseobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +pyexpat_xmlparser_Parse(xmlparseobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *data; @@ -28,10 +28,6 @@ pyexpat_xmlparser_Parse(xmlparseobject * &data, &isfinal)) { goto exit; } - - if (!_PyArg_NoStackKeywords("Parse", kwnames)) { - goto exit; - } return_value = pyexpat_xmlparser_Parse_impl(self, data, isfinal); exit: @@ -128,7 +124,7 @@ pyexpat_xmlparser_ExternalEntityParserCr const char *encoding); static PyObject * -pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *context; @@ -138,10 +134,6 @@ pyexpat_xmlparser_ExternalEntityParserCr &context, &encoding)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ExternalEntityParserCreate", kwnames)) { - goto exit; - } return_value = pyexpat_xmlparser_ExternalEntityParserCreate_impl(self, context, encoding); exit: @@ -199,7 +191,7 @@ static PyObject * pyexpat_xmlparser_UseForeignDTD_impl(xmlparseobject *self, int flag); static PyObject * -pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int flag = 1; @@ -208,10 +200,6 @@ pyexpat_xmlparser_UseForeignDTD(xmlparse &flag)) { goto exit; } - - if (!_PyArg_NoStackKeywords("UseForeignDTD", kwnames)) { - goto exit; - } return_value = pyexpat_xmlparser_UseForeignDTD_impl(self, flag); exit: @@ -245,7 +233,7 @@ PyDoc_STRVAR(pyexpat_ParserCreate__doc__ "Return a new XML parser object."); #define PYEXPAT_PARSERCREATE_METHODDEF \ - {"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_FASTCALL, pyexpat_ParserCreate__doc__}, + {"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_FASTCALL|METH_KEYWORDS, pyexpat_ParserCreate__doc__}, static PyObject * pyexpat_ParserCreate_impl(PyObject *module, const char *encoding, @@ -301,4 +289,4 @@ exit: #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ -/*[clinic end generated code: output=0548a6b12157e29b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5d2e355f2b48e6c3 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/sha1module.c.h --- a/Modules/clinic/sha1module.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/sha1module.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha1_sha1__doc__, "Return a new SHA1 hash object; optionally initialized with a string."); #define _SHA1_SHA1_METHODDEF \ - {"sha1", (PyCFunction)_sha1_sha1, METH_FASTCALL, _sha1_sha1__doc__}, + {"sha1", (PyCFunction)_sha1_sha1, METH_FASTCALL|METH_KEYWORDS, _sha1_sha1__doc__}, static PyObject * _sha1_sha1_impl(PyObject *module, PyObject *string); @@ -94,4 +94,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=8e6b04c7e0407be2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=594cf600d6ba4776 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/sha256module.c.h --- a/Modules/clinic/sha256module.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/sha256module.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha256_sha256__doc__, "Return a new SHA-256 hash object; optionally initialized with a string."); #define _SHA256_SHA256_METHODDEF \ - {"sha256", (PyCFunction)_sha256_sha256, METH_FASTCALL, _sha256_sha256__doc__}, + {"sha256", (PyCFunction)_sha256_sha256, METH_FASTCALL|METH_KEYWORDS, _sha256_sha256__doc__}, static PyObject * _sha256_sha256_impl(PyObject *module, PyObject *string); @@ -102,7 +102,7 @@ PyDoc_STRVAR(_sha256_sha224__doc__, "Return a new SHA-224 hash object; optionally initialized with a string."); #define _SHA256_SHA224_METHODDEF \ - {"sha224", (PyCFunction)_sha256_sha224, METH_FASTCALL, _sha256_sha224__doc__}, + {"sha224", (PyCFunction)_sha256_sha224, METH_FASTCALL|METH_KEYWORDS, _sha256_sha224__doc__}, static PyObject * _sha256_sha224_impl(PyObject *module, PyObject *string); @@ -124,4 +124,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=7ef4927ee2a3aac4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=84e7b8365b3ca4d3 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/sha512module.c.h --- a/Modules/clinic/sha512module.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/sha512module.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha512_sha512__doc__, "Return a new SHA-512 hash object; optionally initialized with a string."); #define _SHA512_SHA512_METHODDEF \ - {"sha512", (PyCFunction)_sha512_sha512, METH_FASTCALL, _sha512_sha512__doc__}, + {"sha512", (PyCFunction)_sha512_sha512, METH_FASTCALL|METH_KEYWORDS, _sha512_sha512__doc__}, static PyObject * _sha512_sha512_impl(PyObject *module, PyObject *string); @@ -102,7 +102,7 @@ PyDoc_STRVAR(_sha512_sha384__doc__, "Return a new SHA-384 hash object; optionally initialized with a string."); #define _SHA512_SHA384_METHODDEF \ - {"sha384", (PyCFunction)_sha512_sha384, METH_FASTCALL, _sha512_sha384__doc__}, + {"sha384", (PyCFunction)_sha512_sha384, METH_FASTCALL|METH_KEYWORDS, _sha512_sha384__doc__}, static PyObject * _sha512_sha384_impl(PyObject *module, PyObject *string); @@ -124,4 +124,4 @@ static PyObject * exit: return return_value; } -/*[clinic end generated code: output=7bb7a49159e9b469 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=2f6ad0831d16c35f input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/signalmodule.c.h --- a/Modules/clinic/signalmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/signalmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -80,7 +80,7 @@ static PyObject * signal_signal_impl(PyObject *module, int signalnum, PyObject *handler); static PyObject * -signal_signal(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +signal_signal(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int signalnum; @@ -90,10 +90,6 @@ signal_signal(PyObject *module, PyObject &signalnum, &handler)) { goto exit; } - - if (!_PyArg_NoStackKeywords("signal", kwnames)) { - goto exit; - } return_value = signal_signal_impl(module, signalnum, handler); exit: @@ -151,7 +147,7 @@ static PyObject * signal_siginterrupt_impl(PyObject *module, int signalnum, int flag); static PyObject * -signal_siginterrupt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +signal_siginterrupt(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int signalnum; @@ -161,10 +157,6 @@ signal_siginterrupt(PyObject *module, Py &signalnum, &flag)) { goto exit; } - - if (!_PyArg_NoStackKeywords("siginterrupt", kwnames)) { - goto exit; - } return_value = signal_siginterrupt_impl(module, signalnum, flag); exit: @@ -194,7 +186,7 @@ signal_setitimer_impl(PyObject *module, double interval); static PyObject * -signal_setitimer(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +signal_setitimer(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int which; @@ -205,10 +197,6 @@ signal_setitimer(PyObject *module, PyObj &which, &seconds, &interval)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setitimer", kwnames)) { - goto exit; - } return_value = signal_setitimer_impl(module, which, seconds, interval); exit: @@ -263,7 +251,7 @@ static PyObject * signal_pthread_sigmask_impl(PyObject *module, int how, PyObject *mask); static PyObject * -signal_pthread_sigmask(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +signal_pthread_sigmask(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int how; @@ -273,10 +261,6 @@ signal_pthread_sigmask(PyObject *module, &how, &mask)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pthread_sigmask", kwnames)) { - goto exit; - } return_value = signal_pthread_sigmask_impl(module, how, mask); exit: @@ -360,7 +344,7 @@ signal_sigtimedwait_impl(PyObject *modul PyObject *timeout_obj); static PyObject * -signal_sigtimedwait(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +signal_sigtimedwait(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *sigset; @@ -371,10 +355,6 @@ signal_sigtimedwait(PyObject *module, Py &sigset, &timeout_obj)) { goto exit; } - - if (!_PyArg_NoStackKeywords("sigtimedwait", kwnames)) { - goto exit; - } return_value = signal_sigtimedwait_impl(module, sigset, timeout_obj); exit: @@ -398,7 +378,7 @@ static PyObject * signal_pthread_kill_impl(PyObject *module, long thread_id, int signalnum); static PyObject * -signal_pthread_kill(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +signal_pthread_kill(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; long thread_id; @@ -408,10 +388,6 @@ signal_pthread_kill(PyObject *module, Py &thread_id, &signalnum)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pthread_kill", kwnames)) { - goto exit; - } return_value = signal_pthread_kill_impl(module, thread_id, signalnum); exit: @@ -463,4 +439,4 @@ exit: #ifndef SIGNAL_PTHREAD_KILL_METHODDEF #define SIGNAL_PTHREAD_KILL_METHODDEF #endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */ -/*[clinic end generated code: output=fab3dba32c058588 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=99ed1ec3156528ba input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/symtablemodule.c.h --- a/Modules/clinic/symtablemodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/symtablemodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -16,7 +16,7 @@ static PyObject * PyObject *filename, const char *startstr); static PyObject * -_symtable_symtable(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_symtable_symtable(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *str; @@ -27,13 +27,9 @@ static PyObject * &str, PyUnicode_FSDecoder, &filename, &startstr)) { goto exit; } - - if (!_PyArg_NoStackKeywords("symtable", kwnames)) { - goto exit; - } return_value = _symtable_symtable_impl(module, str, filename, startstr); exit: return return_value; } -/*[clinic end generated code: output=071dee4d836e2cfd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ef379e514fde8477 input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/unicodedata.c.h --- a/Modules/clinic/unicodedata.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/unicodedata.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -20,7 +20,7 @@ unicodedata_UCD_decimal_impl(PyObject *s PyObject *default_value); static PyObject * -unicodedata_UCD_decimal(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_decimal(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; @@ -30,10 +30,6 @@ unicodedata_UCD_decimal(PyObject *self, &chr, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("decimal", kwnames)) { - goto exit; - } return_value = unicodedata_UCD_decimal_impl(self, chr, default_value); exit: @@ -57,7 +53,7 @@ static PyObject * unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value); static PyObject * -unicodedata_UCD_digit(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_digit(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; @@ -67,10 +63,6 @@ unicodedata_UCD_digit(PyObject *self, Py &chr, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("digit", kwnames)) { - goto exit; - } return_value = unicodedata_UCD_digit_impl(self, chr, default_value); exit: @@ -95,7 +87,7 @@ unicodedata_UCD_numeric_impl(PyObject *s PyObject *default_value); static PyObject * -unicodedata_UCD_numeric(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_numeric(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; @@ -105,10 +97,6 @@ unicodedata_UCD_numeric(PyObject *self, &chr, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("numeric", kwnames)) { - goto exit; - } return_value = unicodedata_UCD_numeric_impl(self, chr, default_value); exit: @@ -312,7 +300,7 @@ unicodedata_UCD_normalize_impl(PyObject PyObject *input); static PyObject * -unicodedata_UCD_normalize(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_normalize(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *form; @@ -322,10 +310,6 @@ unicodedata_UCD_normalize(PyObject *self &form, &input)) { goto exit; } - - if (!_PyArg_NoStackKeywords("normalize", kwnames)) { - goto exit; - } return_value = unicodedata_UCD_normalize_impl(self, form, input); exit: @@ -348,7 +332,7 @@ static PyObject * unicodedata_UCD_name_impl(PyObject *self, int chr, PyObject *default_value); static PyObject * -unicodedata_UCD_name(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_name(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; @@ -358,10 +342,6 @@ unicodedata_UCD_name(PyObject *self, PyO &chr, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("name", kwnames)) { - goto exit; - } return_value = unicodedata_UCD_name_impl(self, chr, default_value); exit: @@ -399,4 +379,4 @@ unicodedata_UCD_lookup(PyObject *self, P exit: return return_value; } -/*[clinic end generated code: output=fcb86aaa3fa40876 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7ec9a3c8fbfd3c3a input=a9049054013a1b77]*/ diff -r ee074604bf0c Modules/clinic/zlibmodule.c.h --- a/Modules/clinic/zlibmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Modules/clinic/zlibmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -14,7 +14,7 @@ PyDoc_STRVAR(zlib_compress__doc__, " Compression level, in 0-9 or -1."); #define ZLIB_COMPRESS_METHODDEF \ - {"compress", (PyCFunction)zlib_compress, METH_FASTCALL, zlib_compress__doc__}, + {"compress", (PyCFunction)zlib_compress, METH_FASTCALL|METH_KEYWORDS, zlib_compress__doc__}, static PyObject * zlib_compress_impl(PyObject *module, Py_buffer *data, int level); @@ -57,7 +57,7 @@ PyDoc_STRVAR(zlib_decompress__doc__, " The initial output buffer size."); #define ZLIB_DECOMPRESS_METHODDEF \ - {"decompress", (PyCFunction)zlib_decompress, METH_FASTCALL, zlib_decompress__doc__}, + {"decompress", (PyCFunction)zlib_decompress, METH_FASTCALL|METH_KEYWORDS, zlib_decompress__doc__}, static PyObject * zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits, @@ -119,7 +119,7 @@ PyDoc_STRVAR(zlib_compressobj__doc__, " containing subsequences that are likely to occur in the input data."); #define ZLIB_COMPRESSOBJ_METHODDEF \ - {"compressobj", (PyCFunction)zlib_compressobj, METH_FASTCALL, zlib_compressobj__doc__}, + {"compressobj", (PyCFunction)zlib_compressobj, METH_FASTCALL|METH_KEYWORDS, zlib_compressobj__doc__}, static PyObject * zlib_compressobj_impl(PyObject *module, int level, int method, int wbits, @@ -166,7 +166,7 @@ PyDoc_STRVAR(zlib_decompressobj__doc__, " dictionary as used by the compressor that produced the input data."); #define ZLIB_DECOMPRESSOBJ_METHODDEF \ - {"decompressobj", (PyCFunction)zlib_decompressobj, METH_FASTCALL, zlib_decompressobj__doc__}, + {"decompressobj", (PyCFunction)zlib_decompressobj, METH_FASTCALL|METH_KEYWORDS, zlib_decompressobj__doc__}, static PyObject * zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict); @@ -247,7 +247,7 @@ PyDoc_STRVAR(zlib_Decompress_decompress_ "Call the flush() method to clear these buffers."); #define ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF \ - {"decompress", (PyCFunction)zlib_Decompress_decompress, METH_FASTCALL, zlib_Decompress_decompress__doc__}, + {"decompress", (PyCFunction)zlib_Decompress_decompress, METH_FASTCALL|METH_KEYWORDS, zlib_Decompress_decompress__doc__}, static PyObject * zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data, @@ -296,7 +296,7 @@ static PyObject * zlib_Compress_flush_impl(compobject *self, int mode); static PyObject * -zlib_Compress_flush(compobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +zlib_Compress_flush(compobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int mode = Z_FINISH; @@ -305,10 +305,6 @@ zlib_Compress_flush(compobject *self, Py &mode)) { goto exit; } - - if (!_PyArg_NoStackKeywords("flush", kwnames)) { - goto exit; - } return_value = zlib_Compress_flush_impl(self, mode); exit: @@ -375,7 +371,7 @@ static PyObject * zlib_Decompress_flush_impl(compobject *self, Py_ssize_t length); static PyObject * -zlib_Decompress_flush(compobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +zlib_Decompress_flush(compobject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t length = DEF_BUF_SIZE; @@ -384,10 +380,6 @@ zlib_Decompress_flush(compobject *self, ssize_t_converter, &length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("flush", kwnames)) { - goto exit; - } return_value = zlib_Decompress_flush_impl(self, length); exit: @@ -412,7 +404,7 @@ static PyObject * zlib_adler32_impl(PyObject *module, Py_buffer *data, unsigned int value); static PyObject * -zlib_adler32(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +zlib_adler32(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -422,10 +414,6 @@ zlib_adler32(PyObject *module, PyObject &data, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("adler32", kwnames)) { - goto exit; - } return_value = zlib_adler32_impl(module, &data, value); exit: @@ -455,7 +443,7 @@ static PyObject * zlib_crc32_impl(PyObject *module, Py_buffer *data, unsigned int value); static PyObject * -zlib_crc32(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +zlib_crc32(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -465,10 +453,6 @@ zlib_crc32(PyObject *module, PyObject ** &data, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("crc32", kwnames)) { - goto exit; - } return_value = zlib_crc32_impl(module, &data, value); exit: @@ -483,4 +467,4 @@ exit: #ifndef ZLIB_COMPRESS_COPY_METHODDEF #define ZLIB_COMPRESS_COPY_METHODDEF #endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */ -/*[clinic end generated code: output=fa1b5f4a6208c342 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e0184313eb431e95 input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/clinic/bytearrayobject.c.h --- a/Objects/clinic/bytearrayobject.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/clinic/bytearrayobject.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -51,7 +51,7 @@ PyDoc_STRVAR(bytearray_translate__doc__, "The remaining characters are mapped through the given translation table."); #define BYTEARRAY_TRANSLATE_METHODDEF \ - {"translate", (PyCFunction)bytearray_translate, METH_FASTCALL, bytearray_translate__doc__}, + {"translate", (PyCFunction)bytearray_translate, METH_FASTCALL|METH_KEYWORDS, bytearray_translate__doc__}, static PyObject * bytearray_translate_impl(PyByteArrayObject *self, PyObject *table, @@ -94,7 +94,7 @@ static PyObject * bytearray_maketrans_impl(Py_buffer *frm, Py_buffer *to); static PyObject * -bytearray_maketrans(void *null, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_maketrans(void *null, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer frm = {NULL, NULL}; @@ -104,10 +104,6 @@ bytearray_maketrans(void *null, PyObject &frm, &to)) { goto exit; } - - if (!_PyArg_NoStackKeywords("maketrans", kwnames)) { - goto exit; - } return_value = bytearray_maketrans_impl(&frm, &to); exit: @@ -144,7 +140,7 @@ bytearray_replace_impl(PyByteArrayObject Py_buffer *new, Py_ssize_t count); static PyObject * -bytearray_replace(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_replace(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer old = {NULL, NULL}; @@ -155,10 +151,6 @@ bytearray_replace(PyByteArrayObject *sel &old, &new, &count)) { goto exit; } - - if (!_PyArg_NoStackKeywords("replace", kwnames)) { - goto exit; - } return_value = bytearray_replace_impl(self, &old, &new, count); exit: @@ -189,7 +181,7 @@ PyDoc_STRVAR(bytearray_split__doc__, " -1 (the default value) means no limit."); #define BYTEARRAY_SPLIT_METHODDEF \ - {"split", (PyCFunction)bytearray_split, METH_FASTCALL, bytearray_split__doc__}, + {"split", (PyCFunction)bytearray_split, METH_FASTCALL|METH_KEYWORDS, bytearray_split__doc__}, static PyObject * bytearray_split_impl(PyByteArrayObject *self, PyObject *sep, @@ -263,7 +255,7 @@ PyDoc_STRVAR(bytearray_rsplit__doc__, "Splitting is done starting at the end of the bytearray and working to the front."); #define BYTEARRAY_RSPLIT_METHODDEF \ - {"rsplit", (PyCFunction)bytearray_rsplit, METH_FASTCALL, bytearray_rsplit__doc__}, + {"rsplit", (PyCFunction)bytearray_rsplit, METH_FASTCALL|METH_KEYWORDS, bytearray_rsplit__doc__}, static PyObject * bytearray_rsplit_impl(PyByteArrayObject *self, PyObject *sep, @@ -324,7 +316,7 @@ static PyObject * bytearray_insert_impl(PyByteArrayObject *self, Py_ssize_t index, int item); static PyObject * -bytearray_insert(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_insert(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t index; @@ -334,10 +326,6 @@ bytearray_insert(PyByteArrayObject *self &index, _getbytevalue, &item)) { goto exit; } - - if (!_PyArg_NoStackKeywords("insert", kwnames)) { - goto exit; - } return_value = bytearray_insert_impl(self, index, item); exit: @@ -405,7 +393,7 @@ static PyObject * bytearray_pop_impl(PyByteArrayObject *self, Py_ssize_t index); static PyObject * -bytearray_pop(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_pop(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t index = -1; @@ -414,10 +402,6 @@ bytearray_pop(PyByteArrayObject *self, P &index)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pop", kwnames)) { - goto exit; - } return_value = bytearray_pop_impl(self, index); exit: @@ -469,7 +453,7 @@ static PyObject * bytearray_strip_impl(PyByteArrayObject *self, PyObject *bytes); static PyObject * -bytearray_strip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_strip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *bytes = Py_None; @@ -479,10 +463,6 @@ bytearray_strip(PyByteArrayObject *self, &bytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("strip", kwnames)) { - goto exit; - } return_value = bytearray_strip_impl(self, bytes); exit: @@ -504,7 +484,7 @@ static PyObject * bytearray_lstrip_impl(PyByteArrayObject *self, PyObject *bytes); static PyObject * -bytearray_lstrip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_lstrip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *bytes = Py_None; @@ -514,10 +494,6 @@ bytearray_lstrip(PyByteArrayObject *self &bytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lstrip", kwnames)) { - goto exit; - } return_value = bytearray_lstrip_impl(self, bytes); exit: @@ -539,7 +515,7 @@ static PyObject * bytearray_rstrip_impl(PyByteArrayObject *self, PyObject *bytes); static PyObject * -bytearray_rstrip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_rstrip(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *bytes = Py_None; @@ -549,10 +525,6 @@ bytearray_rstrip(PyByteArrayObject *self &bytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rstrip", kwnames)) { - goto exit; - } return_value = bytearray_rstrip_impl(self, bytes); exit: @@ -575,7 +547,7 @@ PyDoc_STRVAR(bytearray_decode__doc__, " can handle UnicodeDecodeErrors."); #define BYTEARRAY_DECODE_METHODDEF \ - {"decode", (PyCFunction)bytearray_decode, METH_FASTCALL, bytearray_decode__doc__}, + {"decode", (PyCFunction)bytearray_decode, METH_FASTCALL|METH_KEYWORDS, bytearray_decode__doc__}, static PyObject * bytearray_decode_impl(PyByteArrayObject *self, const char *encoding, @@ -623,7 +595,7 @@ PyDoc_STRVAR(bytearray_splitlines__doc__ "true."); #define BYTEARRAY_SPLITLINES_METHODDEF \ - {"splitlines", (PyCFunction)bytearray_splitlines, METH_FASTCALL, bytearray_splitlines__doc__}, + {"splitlines", (PyCFunction)bytearray_splitlines, METH_FASTCALL|METH_KEYWORDS, bytearray_splitlines__doc__}, static PyObject * bytearray_splitlines_impl(PyByteArrayObject *self, int keepends); @@ -707,7 +679,7 @@ static PyObject * bytearray_reduce_ex_impl(PyByteArrayObject *self, int proto); static PyObject * -bytearray_reduce_ex(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytearray_reduce_ex(PyByteArrayObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int proto = 0; @@ -716,10 +688,6 @@ bytearray_reduce_ex(PyByteArrayObject *s &proto)) { goto exit; } - - if (!_PyArg_NoStackKeywords("__reduce_ex__", kwnames)) { - goto exit; - } return_value = bytearray_reduce_ex_impl(self, proto); exit: @@ -743,4 +711,4 @@ bytearray_sizeof(PyByteArrayObject *self { return bytearray_sizeof_impl(self); } -/*[clinic end generated code: output=f5c364927425fae8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e53f10084457a46b input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/clinic/bytesobject.c.h --- a/Objects/clinic/bytesobject.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/clinic/bytesobject.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -17,7 +17,7 @@ PyDoc_STRVAR(bytes_split__doc__, " -1 (the default value) means no limit."); #define BYTES_SPLIT_METHODDEF \ - {"split", (PyCFunction)bytes_split, METH_FASTCALL, bytes_split__doc__}, + {"split", (PyCFunction)bytes_split, METH_FASTCALL|METH_KEYWORDS, bytes_split__doc__}, static PyObject * bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); @@ -136,7 +136,7 @@ PyDoc_STRVAR(bytes_rsplit__doc__, "Splitting is done starting at the end of the bytes and working to the front."); #define BYTES_RSPLIT_METHODDEF \ - {"rsplit", (PyCFunction)bytes_rsplit, METH_FASTCALL, bytes_rsplit__doc__}, + {"rsplit", (PyCFunction)bytes_rsplit, METH_FASTCALL|METH_KEYWORDS, bytes_rsplit__doc__}, static PyObject * bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); @@ -190,7 +190,7 @@ static PyObject * bytes_strip_impl(PyBytesObject *self, PyObject *bytes); static PyObject * -bytes_strip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytes_strip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *bytes = Py_None; @@ -200,10 +200,6 @@ bytes_strip(PyBytesObject *self, PyObjec &bytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("strip", kwnames)) { - goto exit; - } return_value = bytes_strip_impl(self, bytes); exit: @@ -225,7 +221,7 @@ static PyObject * bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes); static PyObject * -bytes_lstrip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytes_lstrip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *bytes = Py_None; @@ -235,10 +231,6 @@ bytes_lstrip(PyBytesObject *self, PyObje &bytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lstrip", kwnames)) { - goto exit; - } return_value = bytes_lstrip_impl(self, bytes); exit: @@ -260,7 +252,7 @@ static PyObject * bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes); static PyObject * -bytes_rstrip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytes_rstrip(PyBytesObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *bytes = Py_None; @@ -270,10 +262,6 @@ bytes_rstrip(PyBytesObject *self, PyObje &bytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rstrip", kwnames)) { - goto exit; - } return_value = bytes_rstrip_impl(self, bytes); exit: @@ -293,7 +281,7 @@ PyDoc_STRVAR(bytes_translate__doc__, "The remaining characters are mapped through the given translation table."); #define BYTES_TRANSLATE_METHODDEF \ - {"translate", (PyCFunction)bytes_translate, METH_FASTCALL, bytes_translate__doc__}, + {"translate", (PyCFunction)bytes_translate, METH_FASTCALL|METH_KEYWORDS, bytes_translate__doc__}, static PyObject * bytes_translate_impl(PyBytesObject *self, PyObject *table, @@ -336,7 +324,7 @@ static PyObject * bytes_maketrans_impl(Py_buffer *frm, Py_buffer *to); static PyObject * -bytes_maketrans(void *null, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytes_maketrans(void *null, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer frm = {NULL, NULL}; @@ -346,10 +334,6 @@ bytes_maketrans(void *null, PyObject **a &frm, &to)) { goto exit; } - - if (!_PyArg_NoStackKeywords("maketrans", kwnames)) { - goto exit; - } return_value = bytes_maketrans_impl(&frm, &to); exit: @@ -386,7 +370,7 @@ bytes_replace_impl(PyBytesObject *self, Py_ssize_t count); static PyObject * -bytes_replace(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +bytes_replace(PyBytesObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_buffer old = {NULL, NULL}; @@ -397,10 +381,6 @@ bytes_replace(PyBytesObject *self, PyObj &old, &new, &count)) { goto exit; } - - if (!_PyArg_NoStackKeywords("replace", kwnames)) { - goto exit; - } return_value = bytes_replace_impl(self, &old, &new, count); exit: @@ -432,7 +412,7 @@ PyDoc_STRVAR(bytes_decode__doc__, " can handle UnicodeDecodeErrors."); #define BYTES_DECODE_METHODDEF \ - {"decode", (PyCFunction)bytes_decode, METH_FASTCALL, bytes_decode__doc__}, + {"decode", (PyCFunction)bytes_decode, METH_FASTCALL|METH_KEYWORDS, bytes_decode__doc__}, static PyObject * bytes_decode_impl(PyBytesObject *self, const char *encoding, @@ -467,7 +447,7 @@ PyDoc_STRVAR(bytes_splitlines__doc__, "true."); #define BYTES_SPLITLINES_METHODDEF \ - {"splitlines", (PyCFunction)bytes_splitlines, METH_FASTCALL, bytes_splitlines__doc__}, + {"splitlines", (PyCFunction)bytes_splitlines, METH_FASTCALL|METH_KEYWORDS, bytes_splitlines__doc__}, static PyObject * bytes_splitlines_impl(PyBytesObject *self, int keepends); @@ -519,4 +499,4 @@ bytes_fromhex(PyTypeObject *type, PyObje exit: return return_value; } -/*[clinic end generated code: output=2504c1225108d348 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9e3374bd7d04c163 input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/clinic/dictobject.c.h --- a/Objects/clinic/dictobject.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/clinic/dictobject.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -15,7 +15,7 @@ static PyObject * dict_fromkeys_impl(PyTypeObject *type, PyObject *iterable, PyObject *value); static PyObject * -dict_fromkeys(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +dict_fromkeys(PyTypeObject *type, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *iterable; @@ -26,10 +26,6 @@ dict_fromkeys(PyTypeObject *type, PyObje &iterable, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("fromkeys", kwnames)) { - goto exit; - } return_value = dict_fromkeys_impl(type, iterable, value); exit: @@ -58,7 +54,7 @@ static PyObject * dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value); static PyObject * -dict_get(PyDictObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +dict_get(PyDictObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *key; @@ -69,10 +65,6 @@ dict_get(PyDictObject *self, PyObject ** &key, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("get", kwnames)) { - goto exit; - } return_value = dict_get_impl(self, key, default_value); exit: @@ -95,7 +87,7 @@ dict_setdefault_impl(PyDictObject *self, PyObject *default_value); static PyObject * -dict_setdefault(PyDictObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +dict_setdefault(PyDictObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *key; @@ -106,13 +98,9 @@ dict_setdefault(PyDictObject *self, PyOb &key, &default_value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setdefault", kwnames)) { - goto exit; - } return_value = dict_setdefault_impl(self, key, default_value); exit: return return_value; } -/*[clinic end generated code: output=4d57df133cf66e53 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8d09902e60b7ab02 input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/clinic/longobject.c.h --- a/Objects/clinic/longobject.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/clinic/longobject.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -117,7 +117,7 @@ PyDoc_STRVAR(int_to_bytes__doc__, " is raised."); #define INT_TO_BYTES_METHODDEF \ - {"to_bytes", (PyCFunction)int_to_bytes, METH_FASTCALL, int_to_bytes__doc__}, + {"to_bytes", (PyCFunction)int_to_bytes, METH_FASTCALL|METH_KEYWORDS, int_to_bytes__doc__}, static PyObject * int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder, @@ -164,7 +164,7 @@ PyDoc_STRVAR(int_from_bytes__doc__, " Indicates whether two\'s complement is used to represent the integer."); #define INT_FROM_BYTES_METHODDEF \ - {"from_bytes", (PyCFunction)int_from_bytes, METH_FASTCALL|METH_CLASS, int_from_bytes__doc__}, + {"from_bytes", (PyCFunction)int_from_bytes, METH_FASTCALL|METH_KEYWORDS|METH_CLASS, int_from_bytes__doc__}, static PyObject * int_from_bytes_impl(PyTypeObject *type, PyObject *bytes_obj, @@ -189,4 +189,4 @@ int_from_bytes(PyTypeObject *type, PyObj exit: return return_value; } -/*[clinic end generated code: output=a9bae2fd016e7b85 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6dd031d43c457617 input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/clinic/odictobject.c.h --- a/Objects/clinic/odictobject.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/clinic/odictobject.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -9,7 +9,7 @@ PyDoc_STRVAR(OrderedDict_fromkeys__doc__ "Create a new ordered dictionary with keys from iterable and values set to value."); #define ORDEREDDICT_FROMKEYS_METHODDEF \ - {"fromkeys", (PyCFunction)OrderedDict_fromkeys, METH_FASTCALL|METH_CLASS, OrderedDict_fromkeys__doc__}, + {"fromkeys", (PyCFunction)OrderedDict_fromkeys, METH_FASTCALL|METH_KEYWORDS|METH_CLASS, OrderedDict_fromkeys__doc__}, static PyObject * OrderedDict_fromkeys_impl(PyTypeObject *type, PyObject *seq, PyObject *value); @@ -42,7 +42,7 @@ PyDoc_STRVAR(OrderedDict_setdefault__doc "Return the value for key if key is in the dictionary, else default."); #define ORDEREDDICT_SETDEFAULT_METHODDEF \ - {"setdefault", (PyCFunction)OrderedDict_setdefault, METH_FASTCALL, OrderedDict_setdefault__doc__}, + {"setdefault", (PyCFunction)OrderedDict_setdefault, METH_FASTCALL|METH_KEYWORDS, OrderedDict_setdefault__doc__}, static PyObject * OrderedDict_setdefault_impl(PyODictObject *self, PyObject *key, @@ -76,7 +76,7 @@ PyDoc_STRVAR(OrderedDict_popitem__doc__, "Pairs are returned in LIFO order if last is true or FIFO order if false."); #define ORDEREDDICT_POPITEM_METHODDEF \ - {"popitem", (PyCFunction)OrderedDict_popitem, METH_FASTCALL, OrderedDict_popitem__doc__}, + {"popitem", (PyCFunction)OrderedDict_popitem, METH_FASTCALL|METH_KEYWORDS, OrderedDict_popitem__doc__}, static PyObject * OrderedDict_popitem_impl(PyODictObject *self, int last); @@ -108,7 +108,7 @@ PyDoc_STRVAR(OrderedDict_move_to_end__do "Raise KeyError if the element does not exist."); #define ORDEREDDICT_MOVE_TO_END_METHODDEF \ - {"move_to_end", (PyCFunction)OrderedDict_move_to_end, METH_FASTCALL, OrderedDict_move_to_end__doc__}, + {"move_to_end", (PyCFunction)OrderedDict_move_to_end, METH_FASTCALL|METH_KEYWORDS, OrderedDict_move_to_end__doc__}, static PyObject * OrderedDict_move_to_end_impl(PyODictObject *self, PyObject *key, int last); @@ -131,4 +131,4 @@ OrderedDict_move_to_end(PyODictObject *s exit: return return_value; } -/*[clinic end generated code: output=a19a24ac37b42e5e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=b2f82eca6e8c8084 input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/clinic/unicodeobject.c.h --- a/Objects/clinic/unicodeobject.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/clinic/unicodeobject.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -77,7 +77,7 @@ static PyObject * unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar); static PyObject * -unicode_center(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_center(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t width; @@ -87,10 +87,6 @@ unicode_center(PyObject *self, PyObject &width, convert_uc, &fillchar)) { goto exit; } - - if (!_PyArg_NoStackKeywords("center", kwnames)) { - goto exit; - } return_value = unicode_center_impl(self, width, fillchar); exit: @@ -113,7 +109,7 @@ PyDoc_STRVAR(unicode_encode__doc__, " codecs.register_error that can handle UnicodeEncodeErrors."); #define UNICODE_ENCODE_METHODDEF \ - {"encode", (PyCFunction)unicode_encode, METH_FASTCALL, unicode_encode__doc__}, + {"encode", (PyCFunction)unicode_encode, METH_FASTCALL|METH_KEYWORDS, unicode_encode__doc__}, static PyObject * unicode_encode_impl(PyObject *self, const char *encoding, const char *errors); @@ -146,7 +142,7 @@ PyDoc_STRVAR(unicode_expandtabs__doc__, "If tabsize is not given, a tab size of 8 characters is assumed."); #define UNICODE_EXPANDTABS_METHODDEF \ - {"expandtabs", (PyCFunction)unicode_expandtabs, METH_FASTCALL, unicode_expandtabs__doc__}, + {"expandtabs", (PyCFunction)unicode_expandtabs, METH_FASTCALL|METH_KEYWORDS, unicode_expandtabs__doc__}, static PyObject * unicode_expandtabs_impl(PyObject *self, int tabsize); @@ -429,7 +425,7 @@ static PyObject * unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar); static PyObject * -unicode_ljust(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_ljust(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t width; @@ -439,10 +435,6 @@ unicode_ljust(PyObject *self, PyObject * &width, convert_uc, &fillchar)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ljust", kwnames)) { - goto exit; - } return_value = unicode_ljust_impl(self, width, fillchar); exit: @@ -482,7 +474,7 @@ static PyObject * unicode_strip_impl(PyObject *self, PyObject *chars); static PyObject * -unicode_strip(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_strip(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *chars = Py_None; @@ -492,10 +484,6 @@ unicode_strip(PyObject *self, PyObject * &chars)) { goto exit; } - - if (!_PyArg_NoStackKeywords("strip", kwnames)) { - goto exit; - } return_value = unicode_strip_impl(self, chars); exit: @@ -517,7 +505,7 @@ static PyObject * unicode_lstrip_impl(PyObject *self, PyObject *chars); static PyObject * -unicode_lstrip(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_lstrip(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *chars = NULL; @@ -527,10 +515,6 @@ unicode_lstrip(PyObject *self, PyObject &chars)) { goto exit; } - - if (!_PyArg_NoStackKeywords("lstrip", kwnames)) { - goto exit; - } return_value = unicode_lstrip_impl(self, chars); exit: @@ -552,7 +536,7 @@ static PyObject * unicode_rstrip_impl(PyObject *self, PyObject *chars); static PyObject * -unicode_rstrip(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_rstrip(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *chars = NULL; @@ -562,10 +546,6 @@ unicode_rstrip(PyObject *self, PyObject &chars)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rstrip", kwnames)) { - goto exit; - } return_value = unicode_rstrip_impl(self, chars); exit: @@ -593,7 +573,7 @@ unicode_replace_impl(PyObject *self, PyO Py_ssize_t count); static PyObject * -unicode_replace(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_replace(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *old; @@ -604,10 +584,6 @@ unicode_replace(PyObject *self, PyObject &old, &new, &count)) { goto exit; } - - if (!_PyArg_NoStackKeywords("replace", kwnames)) { - goto exit; - } return_value = unicode_replace_impl(self, old, new, count); exit: @@ -629,7 +605,7 @@ static PyObject * unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar); static PyObject * -unicode_rjust(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_rjust(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_ssize_t width; @@ -639,10 +615,6 @@ unicode_rjust(PyObject *self, PyObject * &width, convert_uc, &fillchar)) { goto exit; } - - if (!_PyArg_NoStackKeywords("rjust", kwnames)) { - goto exit; - } return_value = unicode_rjust_impl(self, width, fillchar); exit: @@ -664,7 +636,7 @@ PyDoc_STRVAR(unicode_split__doc__, " -1 (the default value) means no limit."); #define UNICODE_SPLIT_METHODDEF \ - {"split", (PyCFunction)unicode_split, METH_FASTCALL, unicode_split__doc__}, + {"split", (PyCFunction)unicode_split, METH_FASTCALL|METH_KEYWORDS, unicode_split__doc__}, static PyObject * unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit); @@ -737,7 +709,7 @@ PyDoc_STRVAR(unicode_rsplit__doc__, "Splits are done starting at the end of the string and working to the front."); #define UNICODE_RSPLIT_METHODDEF \ - {"rsplit", (PyCFunction)unicode_rsplit, METH_FASTCALL, unicode_rsplit__doc__}, + {"rsplit", (PyCFunction)unicode_rsplit, METH_FASTCALL|METH_KEYWORDS, unicode_rsplit__doc__}, static PyObject * unicode_rsplit_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit); @@ -771,7 +743,7 @@ PyDoc_STRVAR(unicode_splitlines__doc__, "true."); #define UNICODE_SPLITLINES_METHODDEF \ - {"splitlines", (PyCFunction)unicode_splitlines, METH_FASTCALL, unicode_splitlines__doc__}, + {"splitlines", (PyCFunction)unicode_splitlines, METH_FASTCALL|METH_KEYWORDS, unicode_splitlines__doc__}, static PyObject * unicode_splitlines_impl(PyObject *self, int keepends); @@ -833,7 +805,7 @@ static PyObject * unicode_maketrans_impl(PyObject *x, PyObject *y, PyObject *z); static PyObject * -unicode_maketrans(void *null, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicode_maketrans(void *null, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *x; @@ -844,10 +816,6 @@ unicode_maketrans(void *null, PyObject * &x, &y, &z)) { goto exit; } - - if (!_PyArg_NoStackKeywords("maketrans", kwnames)) { - goto exit; - } return_value = unicode_maketrans_impl(x, y, z); exit: @@ -962,4 +930,4 @@ unicode_sizeof(PyObject *self, PyObject { return unicode_sizeof_impl(self); } -/*[clinic end generated code: output=88b06f61edd282f9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8fd799fd7f2cc724 input=a9049054013a1b77]*/ diff -r ee074604bf0c Objects/methodobject.c --- a/Objects/methodobject.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/methodobject.c Tue Feb 07 15:02:48 2017 +0200 @@ -165,9 +165,19 @@ PyObject * case METH_FASTCALL: { + if (kwargs != NULL && PyDict_GET_SIZE(kwargs) != 0) { + goto no_keyword_error; + } + + result = (*(_PyCFunctionFast)meth) (self, args, nargs); + break; + } + + case METH_FASTCALL | METH_KEYWORDS: + { PyObject **stack; PyObject *kwnames; - _PyCFunctionFast fastmeth = (_PyCFunctionFast)meth; + _PyCFunctionFastWithKeywords fastmeth = (_PyCFunctionFastWithKeywords)meth; if (_PyStack_UnpackDict(args, nargs, kwargs, &stack, &kwnames) < 0) { return NULL; @@ -268,7 +278,16 @@ PyObject * case METH_FASTCALL: /* Fast-path: avoid temporary dict to pass keyword arguments */ - result = ((_PyCFunctionFast)meth) (self, args, nargs, kwnames); + if (nkwargs) { + goto no_keyword_error; + } + + result = ((_PyCFunctionFast)meth) (self, args, nargs); + break; + + case METH_FASTCALL | METH_KEYWORDS: + /* Fast-path: avoid temporary dict to pass keyword arguments */ + result = ((_PyCFunctionFastWithKeywords)meth) (self, args, nargs, kwnames); break; case METH_VARARGS: diff -r ee074604bf0c Objects/typeobject.c --- a/Objects/typeobject.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Objects/typeobject.c Tue Feb 07 15:02:48 2017 +0200 @@ -3235,7 +3235,7 @@ static PyMethodDef type_methods[] = { {"__subclasses__", (PyCFunction)type_subclasses, METH_NOARGS, PyDoc_STR("__subclasses__() -> list of immediate subclasses")}, {"__prepare__", (PyCFunction)type_prepare, - METH_FASTCALL | METH_CLASS, + METH_FASTCALL | METH_KEYWORDS | METH_CLASS, PyDoc_STR("__prepare__() -> dict\n" "used to create the namespace for the class statement")}, {"__instancecheck__", type___instancecheck__, METH_O, diff -r ee074604bf0c PC/clinic/_testconsole.c.h --- a/PC/clinic/_testconsole.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/PC/clinic/_testconsole.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -11,7 +11,7 @@ PyDoc_STRVAR(_testconsole_write_input__d "Writes UTF-16-LE encoded bytes to the console as if typed by a user."); #define _TESTCONSOLE_WRITE_INPUT_METHODDEF \ - {"write_input", (PyCFunction)_testconsole_write_input, METH_FASTCALL, _testconsole_write_input__doc__}, + {"write_input", (PyCFunction)_testconsole_write_input, METH_FASTCALL|METH_KEYWORDS, _testconsole_write_input__doc__}, static PyObject * _testconsole_write_input_impl(PyObject *module, PyObject *file, @@ -47,7 +47,7 @@ PyDoc_STRVAR(_testconsole_read_output__d "Reads a str from the console as written to stdout."); #define _TESTCONSOLE_READ_OUTPUT_METHODDEF \ - {"read_output", (PyCFunction)_testconsole_read_output, METH_FASTCALL, _testconsole_read_output__doc__}, + {"read_output", (PyCFunction)_testconsole_read_output, METH_FASTCALL|METH_KEYWORDS, _testconsole_read_output__doc__}, static PyObject * _testconsole_read_output_impl(PyObject *module, PyObject *file); @@ -79,4 +79,4 @@ exit: #ifndef _TESTCONSOLE_READ_OUTPUT_METHODDEF #define _TESTCONSOLE_READ_OUTPUT_METHODDEF #endif /* !defined(_TESTCONSOLE_READ_OUTPUT_METHODDEF) */ -/*[clinic end generated code: output=30d2a80143b65e6f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ac80ed19e6edc0af input=a9049054013a1b77]*/ diff -r ee074604bf0c PC/clinic/msvcrtmodule.c.h --- a/PC/clinic/msvcrtmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/PC/clinic/msvcrtmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -43,7 +43,7 @@ static PyObject * msvcrt_locking_impl(PyObject *module, int fd, int mode, long nbytes); static PyObject * -msvcrt_locking(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +msvcrt_locking(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -54,10 +54,6 @@ msvcrt_locking(PyObject *module, PyObjec &fd, &mode, &nbytes)) { goto exit; } - - if (!_PyArg_NoStackKeywords("locking", kwnames)) { - goto exit; - } return_value = msvcrt_locking_impl(module, fd, mode, nbytes); exit: @@ -82,7 +78,7 @@ static long msvcrt_setmode_impl(PyObject *module, int fd, int flags); static PyObject * -msvcrt_setmode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +msvcrt_setmode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int fd; @@ -93,10 +89,6 @@ msvcrt_setmode(PyObject *module, PyObjec &fd, &flags)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setmode", kwnames)) { - goto exit; - } _return_value = msvcrt_setmode_impl(module, fd, flags); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -124,7 +116,7 @@ static long msvcrt_open_osfhandle_impl(PyObject *module, intptr_t handle, int flags); static PyObject * -msvcrt_open_osfhandle(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +msvcrt_open_osfhandle(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; intptr_t handle; @@ -135,10 +127,6 @@ msvcrt_open_osfhandle(PyObject *module, &handle, &flags)) { goto exit; } - - if (!_PyArg_NoStackKeywords("open_osfhandle", kwnames)) { - goto exit; - } _return_value = msvcrt_open_osfhandle_impl(module, handle, flags); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -442,7 +430,7 @@ static long msvcrt_CrtSetReportFile_impl(PyObject *module, int type, int file); static PyObject * -msvcrt_CrtSetReportFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +msvcrt_CrtSetReportFile(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int type; @@ -453,10 +441,6 @@ msvcrt_CrtSetReportFile(PyObject *module &type, &file)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CrtSetReportFile", kwnames)) { - goto exit; - } _return_value = msvcrt_CrtSetReportFile_impl(module, type, file); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -486,7 +470,7 @@ static long msvcrt_CrtSetReportMode_impl(PyObject *module, int type, int mode); static PyObject * -msvcrt_CrtSetReportMode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +msvcrt_CrtSetReportMode(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int type; @@ -497,10 +481,6 @@ msvcrt_CrtSetReportMode(PyObject *module &type, &mode)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CrtSetReportMode", kwnames)) { - goto exit; - } _return_value = msvcrt_CrtSetReportMode_impl(module, type, mode); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; @@ -589,4 +569,4 @@ exit: #ifndef MSVCRT_SET_ERROR_MODE_METHODDEF #define MSVCRT_SET_ERROR_MODE_METHODDEF #endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */ -/*[clinic end generated code: output=36f1e78ca8bd3944 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9451f985bc321635 input=a9049054013a1b77]*/ diff -r ee074604bf0c PC/clinic/winreg.c.h --- a/PC/clinic/winreg.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/PC/clinic/winreg.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -77,7 +77,7 @@ PyDoc_STRVAR(winreg_HKEYType___exit____d "\n"); #define WINREG_HKEYTYPE___EXIT___METHODDEF \ - {"__exit__", (PyCFunction)winreg_HKEYType___exit__, METH_FASTCALL, winreg_HKEYType___exit____doc__}, + {"__exit__", (PyCFunction)winreg_HKEYType___exit__, METH_FASTCALL|METH_KEYWORDS, winreg_HKEYType___exit____doc__}, static PyObject * winreg_HKEYType___exit___impl(PyHKEYObject *self, PyObject *exc_type, @@ -141,7 +141,7 @@ winreg_ConnectRegistry_impl(PyObject *mo HKEY key); static PyObject * -winreg_ConnectRegistry(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_ConnectRegistry(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; Py_UNICODE *computer_name; @@ -152,10 +152,6 @@ winreg_ConnectRegistry(PyObject *module, &computer_name, clinic_HKEY_converter, &key)) { goto exit; } - - if (!_PyArg_NoStackKeywords("ConnectRegistry", kwnames)) { - goto exit; - } _return_value = winreg_ConnectRegistry_impl(module, computer_name, key); if (_return_value == NULL) { goto exit; @@ -192,7 +188,7 @@ static HKEY winreg_CreateKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key); static PyObject * -winreg_CreateKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_CreateKey(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -203,10 +199,6 @@ winreg_CreateKey(PyObject *module, PyObj clinic_HKEY_converter, &key, &sub_key)) { goto exit; } - - if (!_PyArg_NoStackKeywords("CreateKey", kwnames)) { - goto exit; - } _return_value = winreg_CreateKey_impl(module, key, sub_key); if (_return_value == NULL) { goto exit; @@ -243,7 +235,7 @@ PyDoc_STRVAR(winreg_CreateKeyEx__doc__, "If the function fails, an OSError exception is raised."); #define WINREG_CREATEKEYEX_METHODDEF \ - {"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_FASTCALL, winreg_CreateKeyEx__doc__}, + {"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_FASTCALL|METH_KEYWORDS, winreg_CreateKeyEx__doc__}, static HKEY winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, @@ -300,7 +292,7 @@ static PyObject * winreg_DeleteKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key); static PyObject * -winreg_DeleteKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_DeleteKey(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -310,10 +302,6 @@ winreg_DeleteKey(PyObject *module, PyObj clinic_HKEY_converter, &key, &sub_key)) { goto exit; } - - if (!_PyArg_NoStackKeywords("DeleteKey", kwnames)) { - goto exit; - } return_value = winreg_DeleteKey_impl(module, key, sub_key); exit: @@ -346,7 +334,7 @@ PyDoc_STRVAR(winreg_DeleteKeyEx__doc__, "On unsupported Windows versions, NotImplementedError is raised."); #define WINREG_DELETEKEYEX_METHODDEF \ - {"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_FASTCALL, winreg_DeleteKeyEx__doc__}, + {"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_FASTCALL|METH_KEYWORDS, winreg_DeleteKeyEx__doc__}, static PyObject * winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, @@ -391,7 +379,7 @@ static PyObject * winreg_DeleteValue_impl(PyObject *module, HKEY key, Py_UNICODE *value); static PyObject * -winreg_DeleteValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_DeleteValue(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -401,10 +389,6 @@ winreg_DeleteValue(PyObject *module, PyO clinic_HKEY_converter, &key, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("DeleteValue", kwnames)) { - goto exit; - } return_value = winreg_DeleteValue_impl(module, key, value); exit: @@ -433,7 +417,7 @@ static PyObject * winreg_EnumKey_impl(PyObject *module, HKEY key, int index); static PyObject * -winreg_EnumKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_EnumKey(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -443,10 +427,6 @@ winreg_EnumKey(PyObject *module, PyObjec clinic_HKEY_converter, &key, &index)) { goto exit; } - - if (!_PyArg_NoStackKeywords("EnumKey", kwnames)) { - goto exit; - } return_value = winreg_EnumKey_impl(module, key, index); exit: @@ -484,7 +464,7 @@ static PyObject * winreg_EnumValue_impl(PyObject *module, HKEY key, int index); static PyObject * -winreg_EnumValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_EnumValue(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -494,10 +474,6 @@ winreg_EnumValue(PyObject *module, PyObj clinic_HKEY_converter, &key, &index)) { goto exit; } - - if (!_PyArg_NoStackKeywords("EnumValue", kwnames)) { - goto exit; - } return_value = winreg_EnumValue_impl(module, key, index); exit: @@ -607,7 +583,7 @@ winreg_LoadKey_impl(PyObject *module, HK Py_UNICODE *file_name); static PyObject * -winreg_LoadKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_LoadKey(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -618,10 +594,6 @@ winreg_LoadKey(PyObject *module, PyObjec clinic_HKEY_converter, &key, &sub_key, &file_name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("LoadKey", kwnames)) { - goto exit; - } return_value = winreg_LoadKey_impl(module, key, sub_key, file_name); exit: @@ -648,7 +620,7 @@ PyDoc_STRVAR(winreg_OpenKey__doc__, "If the function fails, an OSError exception is raised."); #define WINREG_OPENKEY_METHODDEF \ - {"OpenKey", (PyCFunction)winreg_OpenKey, METH_FASTCALL, winreg_OpenKey__doc__}, + {"OpenKey", (PyCFunction)winreg_OpenKey, METH_FASTCALL|METH_KEYWORDS, winreg_OpenKey__doc__}, static HKEY winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, @@ -700,7 +672,7 @@ PyDoc_STRVAR(winreg_OpenKeyEx__doc__, "If the function fails, an OSError exception is raised."); #define WINREG_OPENKEYEX_METHODDEF \ - {"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_FASTCALL, winreg_OpenKeyEx__doc__}, + {"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_FASTCALL|METH_KEYWORDS, winreg_OpenKeyEx__doc__}, static HKEY winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key, @@ -795,7 +767,7 @@ static PyObject * winreg_QueryValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key); static PyObject * -winreg_QueryValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_QueryValue(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -805,10 +777,6 @@ winreg_QueryValue(PyObject *module, PyOb clinic_HKEY_converter, &key, &sub_key)) { goto exit; } - - if (!_PyArg_NoStackKeywords("QueryValue", kwnames)) { - goto exit; - } return_value = winreg_QueryValue_impl(module, key, sub_key); exit: @@ -838,7 +806,7 @@ static PyObject * winreg_QueryValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *name); static PyObject * -winreg_QueryValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_QueryValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -848,10 +816,6 @@ winreg_QueryValueEx(PyObject *module, Py clinic_HKEY_converter, &key, &name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("QueryValueEx", kwnames)) { - goto exit; - } return_value = winreg_QueryValueEx_impl(module, key, name); exit: @@ -886,7 +850,7 @@ static PyObject * winreg_SaveKey_impl(PyObject *module, HKEY key, Py_UNICODE *file_name); static PyObject * -winreg_SaveKey(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_SaveKey(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -896,10 +860,6 @@ winreg_SaveKey(PyObject *module, PyObjec clinic_HKEY_converter, &key, &file_name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("SaveKey", kwnames)) { - goto exit; - } return_value = winreg_SaveKey_impl(module, key, file_name); exit: @@ -941,7 +901,7 @@ winreg_SetValue_impl(PyObject *module, H Py_ssize_clean_t value_length); static PyObject * -winreg_SetValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_SetValue(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -954,10 +914,6 @@ winreg_SetValue(PyObject *module, PyObje clinic_HKEY_converter, &key, &sub_key, &type, &value, &value_length)) { goto exit; } - - if (!_PyArg_NoStackKeywords("SetValue", kwnames)) { - goto exit; - } return_value = winreg_SetValue_impl(module, key, sub_key, type, value, value_length); exit: @@ -1015,7 +971,7 @@ winreg_SetValueEx_impl(PyObject *module, PyObject *reserved, DWORD type, PyObject *value); static PyObject * -winreg_SetValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +winreg_SetValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; HKEY key; @@ -1028,10 +984,6 @@ winreg_SetValueEx(PyObject *module, PyOb clinic_HKEY_converter, &key, &value_name, &reserved, &type, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("SetValueEx", kwnames)) { - goto exit; - } return_value = winreg_SetValueEx_impl(module, key, value_name, reserved, type, value); exit: @@ -1139,4 +1091,4 @@ winreg_QueryReflectionKey(PyObject *modu exit: return return_value; } -/*[clinic end generated code: output=ddc72b006143d33d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9f7991a8580bbd93 input=a9049054013a1b77]*/ diff -r ee074604bf0c PC/clinic/winsound.c.h --- a/PC/clinic/winsound.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/PC/clinic/winsound.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -14,7 +14,7 @@ PyDoc_STRVAR(winsound_PlaySound__doc__, " Flag values, ored together. See module documentation."); #define WINSOUND_PLAYSOUND_METHODDEF \ - {"PlaySound", (PyCFunction)winsound_PlaySound, METH_FASTCALL, winsound_PlaySound__doc__}, + {"PlaySound", (PyCFunction)winsound_PlaySound, METH_FASTCALL|METH_KEYWORDS, winsound_PlaySound__doc__}, static PyObject * winsound_PlaySound_impl(PyObject *module, PyObject *sound, int flags); @@ -51,7 +51,7 @@ PyDoc_STRVAR(winsound_Beep__doc__, " How long the sound should play, in milliseconds."); #define WINSOUND_BEEP_METHODDEF \ - {"Beep", (PyCFunction)winsound_Beep, METH_FASTCALL, winsound_Beep__doc__}, + {"Beep", (PyCFunction)winsound_Beep, METH_FASTCALL|METH_KEYWORDS, winsound_Beep__doc__}, static PyObject * winsound_Beep_impl(PyObject *module, int frequency, int duration); @@ -84,7 +84,7 @@ PyDoc_STRVAR(winsound_MessageBeep__doc__ "x defaults to MB_OK."); #define WINSOUND_MESSAGEBEEP_METHODDEF \ - {"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_FASTCALL, winsound_MessageBeep__doc__}, + {"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_FASTCALL|METH_KEYWORDS, winsound_MessageBeep__doc__}, static PyObject * winsound_MessageBeep_impl(PyObject *module, int type); @@ -106,4 +106,4 @@ winsound_MessageBeep(PyObject *module, P exit: return return_value; } -/*[clinic end generated code: output=102a556c665a277d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d22e41446929d3ef input=a9049054013a1b77]*/ diff -r ee074604bf0c Python/bltinmodule.c --- a/Python/bltinmodule.c Tue Feb 07 11:28:19 2017 +0300 +++ b/Python/bltinmodule.c Tue Feb 07 15:02:48 2017 +0200 @@ -993,8 +993,7 @@ builtin_exec_impl(PyObject *module, PyOb /* AC: cannot convert yet, as needs PEP 457 group support in inspect */ static PyObject * -builtin_getattr(PyObject *self, PyObject **args, Py_ssize_t nargs, - PyObject *kwnames) +builtin_getattr(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *v, *result, *dflt = NULL; PyObject *name; @@ -1002,10 +1001,6 @@ builtin_getattr(PyObject *self, PyObject if (!_PyArg_UnpackStack(args, nargs, "getattr", 2, 3, &v, &name, &dflt)) return NULL; - if (!_PyArg_NoStackKeywords("getattr", kwnames)) { - return NULL; - } - if (!PyUnicode_Check(name)) { PyErr_SetString(PyExc_TypeError, "getattr(): attribute name must be string"); @@ -1303,8 +1298,7 @@ PyTypeObject PyMap_Type = { /* AC: cannot convert yet, as needs PEP 457 group support in inspect */ static PyObject * -builtin_next(PyObject *self, PyObject **args, Py_ssize_t nargs, - PyObject *kwnames) +builtin_next(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *it, *res; PyObject *def = NULL; @@ -1312,10 +1306,6 @@ builtin_next(PyObject *self, PyObject ** if (!_PyArg_UnpackStack(args, nargs, "next", 1, 2, &it, &def)) return NULL; - if (!_PyArg_NoStackKeywords("next", kwnames)) { - return NULL; - } - if (!PyIter_Check(it)) { PyErr_Format(PyExc_TypeError, "'%.200s' object is not an iterator", @@ -2119,7 +2109,7 @@ PyDoc_STRVAR(builtin_sorted__doc__, "reverse flag can be set to request the result in descending order."); #define BUILTIN_SORTED_METHODDEF \ - {"sorted", (PyCFunction)builtin_sorted, METH_FASTCALL, builtin_sorted__doc__}, + {"sorted", (PyCFunction)builtin_sorted, METH_FASTCALL | METH_KEYWORDS, builtin_sorted__doc__}, static PyObject * builtin_sorted(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) @@ -2610,7 +2600,7 @@ PyTypeObject PyZip_Type = { static PyMethodDef builtin_methods[] = { {"__build_class__", (PyCFunction)builtin___build_class__, - METH_FASTCALL, build_class_doc}, + METH_FASTCALL | METH_KEYWORDS, build_class_doc}, {"__import__", (PyCFunction)builtin___import__, METH_VARARGS | METH_KEYWORDS, import_doc}, BUILTIN_ABS_METHODDEF BUILTIN_ALL_METHODDEF @@ -2644,7 +2634,7 @@ static PyMethodDef builtin_methods[] = { BUILTIN_OCT_METHODDEF BUILTIN_ORD_METHODDEF BUILTIN_POW_METHODDEF - {"print", (PyCFunction)builtin_print, METH_FASTCALL, print_doc}, + {"print", (PyCFunction)builtin_print, METH_FASTCALL | METH_KEYWORDS, print_doc}, BUILTIN_REPR_METHODDEF {"round", (PyCFunction)builtin_round, METH_VARARGS | METH_KEYWORDS, round_doc}, BUILTIN_SETATTR_METHODDEF diff -r ee074604bf0c Python/clinic/_warnings.c.h --- a/Python/clinic/_warnings.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Python/clinic/_warnings.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -9,7 +9,7 @@ PyDoc_STRVAR(warnings_warn__doc__, "Issue a warning, or maybe ignore it or raise an exception."); #define WARNINGS_WARN_METHODDEF \ - {"warn", (PyCFunction)warnings_warn, METH_FASTCALL, warnings_warn__doc__}, + {"warn", (PyCFunction)warnings_warn, METH_FASTCALL|METH_KEYWORDS, warnings_warn__doc__}, static PyObject * warnings_warn_impl(PyObject *module, PyObject *message, PyObject *category, @@ -35,4 +35,4 @@ warnings_warn(PyObject *module, PyObject exit: return return_value; } -/*[clinic end generated code: output=acadf1788059034c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=74b1a7d1ee41816d input=a9049054013a1b77]*/ diff -r ee074604bf0c Python/clinic/bltinmodule.c.h --- a/Python/clinic/bltinmodule.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Python/clinic/bltinmodule.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -86,7 +86,7 @@ static PyObject * builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec); static PyObject * -builtin_format(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_format(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *value; @@ -96,10 +96,6 @@ builtin_format(PyObject *module, PyObjec &value, &format_spec)) { goto exit; } - - if (!_PyArg_NoStackKeywords("format", kwnames)) { - goto exit; - } return_value = builtin_format_impl(module, value, format_spec); exit: @@ -152,7 +148,7 @@ PyDoc_STRVAR(builtin_compile__doc__, "in addition to any features explicitly specified."); #define BUILTIN_COMPILE_METHODDEF \ - {"compile", (PyCFunction)builtin_compile, METH_FASTCALL, builtin_compile__doc__}, + {"compile", (PyCFunction)builtin_compile, METH_FASTCALL|METH_KEYWORDS, builtin_compile__doc__}, static PyObject * builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename, @@ -195,7 +191,7 @@ static PyObject * builtin_divmod_impl(PyObject *module, PyObject *x, PyObject *y); static PyObject * -builtin_divmod(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_divmod(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *x; @@ -206,10 +202,6 @@ builtin_divmod(PyObject *module, PyObjec &x, &y)) { goto exit; } - - if (!_PyArg_NoStackKeywords("divmod", kwnames)) { - goto exit; - } return_value = builtin_divmod_impl(module, x, y); exit: @@ -236,7 +228,7 @@ builtin_eval_impl(PyObject *module, PyOb PyObject *locals); static PyObject * -builtin_eval(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_eval(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *source; @@ -248,10 +240,6 @@ builtin_eval(PyObject *module, PyObject &source, &globals, &locals)) { goto exit; } - - if (!_PyArg_NoStackKeywords("eval", kwnames)) { - goto exit; - } return_value = builtin_eval_impl(module, source, globals, locals); exit: @@ -278,7 +266,7 @@ builtin_exec_impl(PyObject *module, PyOb PyObject *locals); static PyObject * -builtin_exec(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_exec(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *source; @@ -290,10 +278,6 @@ builtin_exec(PyObject *module, PyObject &source, &globals, &locals)) { goto exit; } - - if (!_PyArg_NoStackKeywords("exec", kwnames)) { - goto exit; - } return_value = builtin_exec_impl(module, source, globals, locals); exit: @@ -336,7 +320,7 @@ static PyObject * builtin_hasattr_impl(PyObject *module, PyObject *obj, PyObject *name); static PyObject * -builtin_hasattr(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_hasattr(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -347,10 +331,6 @@ builtin_hasattr(PyObject *module, PyObje &obj, &name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("hasattr", kwnames)) { - goto exit; - } return_value = builtin_hasattr_impl(module, obj, name); exit: @@ -385,7 +365,7 @@ builtin_setattr_impl(PyObject *module, P PyObject *value); static PyObject * -builtin_setattr(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_setattr(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -397,10 +377,6 @@ builtin_setattr(PyObject *module, PyObje &obj, &name, &value)) { goto exit; } - - if (!_PyArg_NoStackKeywords("setattr", kwnames)) { - goto exit; - } return_value = builtin_setattr_impl(module, obj, name, value); exit: @@ -422,7 +398,7 @@ static PyObject * builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name); static PyObject * -builtin_delattr(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_delattr(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -433,10 +409,6 @@ builtin_delattr(PyObject *module, PyObje &obj, &name)) { goto exit; } - - if (!_PyArg_NoStackKeywords("delattr", kwnames)) { - goto exit; - } return_value = builtin_delattr_impl(module, obj, name); exit: @@ -535,7 +507,7 @@ static PyObject * builtin_pow_impl(PyObject *module, PyObject *x, PyObject *y, PyObject *z); static PyObject * -builtin_pow(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_pow(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *x; @@ -547,10 +519,6 @@ builtin_pow(PyObject *module, PyObject * &x, &y, &z)) { goto exit; } - - if (!_PyArg_NoStackKeywords("pow", kwnames)) { - goto exit; - } return_value = builtin_pow_impl(module, x, y, z); exit: @@ -576,7 +544,7 @@ static PyObject * builtin_input_impl(PyObject *module, PyObject *prompt); static PyObject * -builtin_input(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_input(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *prompt = NULL; @@ -586,10 +554,6 @@ builtin_input(PyObject *module, PyObject &prompt)) { goto exit; } - - if (!_PyArg_NoStackKeywords("input", kwnames)) { - goto exit; - } return_value = builtin_input_impl(module, prompt); exit: @@ -624,7 +588,7 @@ static PyObject * builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start); static PyObject * -builtin_sum(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_sum(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *iterable; @@ -635,10 +599,6 @@ builtin_sum(PyObject *module, PyObject * &iterable, &start)) { goto exit; } - - if (!_PyArg_NoStackKeywords("sum", kwnames)) { - goto exit; - } return_value = builtin_sum_impl(module, iterable, start); exit: @@ -663,7 +623,7 @@ builtin_isinstance_impl(PyObject *module PyObject *class_or_tuple); static PyObject * -builtin_isinstance(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_isinstance(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *obj; @@ -674,10 +634,6 @@ builtin_isinstance(PyObject *module, PyO &obj, &class_or_tuple)) { goto exit; } - - if (!_PyArg_NoStackKeywords("isinstance", kwnames)) { - goto exit; - } return_value = builtin_isinstance_impl(module, obj, class_or_tuple); exit: @@ -702,7 +658,7 @@ builtin_issubclass_impl(PyObject *module PyObject *class_or_tuple); static PyObject * -builtin_issubclass(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +builtin_issubclass(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *cls; @@ -713,13 +669,9 @@ builtin_issubclass(PyObject *module, PyO &cls, &class_or_tuple)) { goto exit; } - - if (!_PyArg_NoStackKeywords("issubclass", kwnames)) { - goto exit; - } return_value = builtin_issubclass_impl(module, cls, class_or_tuple); exit: return return_value; } -/*[clinic end generated code: output=3234725ef4d8bbf1 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6e975a7d564f19f1 input=a9049054013a1b77]*/ diff -r ee074604bf0c Python/clinic/import.c.h --- a/Python/clinic/import.c.h Tue Feb 07 11:28:19 2017 +0300 +++ b/Python/clinic/import.c.h Tue Feb 07 15:02:48 2017 +0200 @@ -82,7 +82,7 @@ static PyObject * PyObject *path); static PyObject * -_imp__fix_co_filename(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_imp__fix_co_filename(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyCodeObject *code; @@ -92,10 +92,6 @@ static PyObject * &PyCode_Type, &code, &path)) { goto exit; } - - if (!_PyArg_NoStackKeywords("_fix_co_filename", kwnames)) { - goto exit; - } return_value = _imp__fix_co_filename_impl(module, code, path); exit: @@ -279,7 +275,7 @@ static PyObject * _imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file); static PyObject * -_imp_create_dynamic(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_imp_create_dynamic(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *spec; @@ -290,10 +286,6 @@ static PyObject * &spec, &file)) { goto exit; } - - if (!_PyArg_NoStackKeywords("create_dynamic", kwnames)) { - goto exit; - } return_value = _imp_create_dynamic_impl(module, spec, file); exit: @@ -369,4 +361,4 @@ exit: #ifndef _IMP_EXEC_DYNAMIC_METHODDEF #define _IMP_EXEC_DYNAMIC_METHODDEF #endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */ -/*[clinic end generated code: output=c1d0e65d04114958 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d068dd493e513604 input=a9049054013a1b77]*/ diff -r ee074604bf0c Tools/clinic/clinic.py --- a/Tools/clinic/clinic.py Tue Feb 07 11:28:19 2017 +0300 +++ b/Tools/clinic/clinic.py Tue Feb 07 15:02:48 2017 +0200 @@ -712,6 +712,11 @@ class CLanguage(Language): parser_prototype_fastcall = normalize_snippet(""" static PyObject * + {c_basename}({self_type}{self_name}, PyObject **args, Py_ssize_t nargs) + """) + + parser_prototype_fastcall_keywords = normalize_snippet(""" + static PyObject * {c_basename}({self_type}{self_name}, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) """) @@ -835,10 +840,6 @@ class CLanguage(Language): {parse_arguments})) {{ goto exit; }} - - if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{ - goto exit; - }} """, indent=4)) else: flags = "METH_VARARGS" @@ -865,10 +866,6 @@ class CLanguage(Language): {parse_arguments})) {{ goto exit; }} - - if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{ - goto exit; - }} """, indent=4)) else: # positional-only, but no option groups @@ -885,9 +882,9 @@ class CLanguage(Language): """, indent=4)) elif not new_or_init: - flags = "METH_FASTCALL" - - parser_prototype = parser_prototype_fastcall + flags = "METH_FASTCALL|METH_KEYWORDS" + + parser_prototype = parser_prototype_fastcall_keywords body = normalize_snippet(""" if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,