mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
the bare METH_FASTCALL be used for functions with positional-only parameters.
This commit is contained in:
parent
aa0aa0492c
commit
6969eaf468
|
@ -16,10 +16,12 @@ PyAPI_DATA(PyTypeObject) PyCFunction_Type;
|
||||||
#define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type)
|
#define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type)
|
||||||
|
|
||||||
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
|
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
|
||||||
typedef PyObject *(*_PyCFunctionFast) (PyObject *self, PyObject **args,
|
typedef PyObject *(*_PyCFunctionFast) (PyObject *, PyObject **, Py_ssize_t);
|
||||||
Py_ssize_t nargs, PyObject *kwnames);
|
|
||||||
typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
|
typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
|
||||||
PyObject *);
|
PyObject *);
|
||||||
|
typedef PyObject *(*_PyCFunctionFastWithKeywords) (PyObject *,
|
||||||
|
PyObject **, Py_ssize_t,
|
||||||
|
PyObject *);
|
||||||
typedef PyObject *(*PyNoArgsFunction)(PyObject *);
|
typedef PyObject *(*PyNoArgsFunction)(PyObject *);
|
||||||
|
|
||||||
PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
|
PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
|
||||||
|
|
|
@ -912,14 +912,10 @@ _deque_rotate(dequeobject *deque, Py_ssize_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
deque_rotate(dequeobject *deque, PyObject **args, Py_ssize_t nargs,
|
deque_rotate(dequeobject *deque, PyObject **args, Py_ssize_t nargs)
|
||||||
PyObject *kwnames)
|
|
||||||
{
|
{
|
||||||
Py_ssize_t n=1;
|
Py_ssize_t n=1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rotate", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:rotate", &n)) {
|
if (!_PyArg_ParseStack(args, nargs, "|n:rotate", &n)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -1052,8 +1048,7 @@ deque_len(dequeobject *deque)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
deque_index(dequeobject *deque, PyObject **args, Py_ssize_t nargs,
|
deque_index(dequeobject *deque, PyObject **args, Py_ssize_t nargs)
|
||||||
PyObject *kwnames)
|
|
||||||
{
|
{
|
||||||
Py_ssize_t i, n, start=0, stop=Py_SIZE(deque);
|
Py_ssize_t i, n, start=0, stop=Py_SIZE(deque);
|
||||||
PyObject *v, *item;
|
PyObject *v, *item;
|
||||||
|
@ -1062,9 +1057,6 @@ deque_index(dequeobject *deque, PyObject **args, Py_ssize_t nargs,
|
||||||
size_t start_state = deque->state;
|
size_t start_state = deque->state;
|
||||||
int cmp;
|
int cmp;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("index", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index", &v,
|
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index", &v,
|
||||||
_PyEval_SliceIndexNotNone, &start,
|
_PyEval_SliceIndexNotNone, &start,
|
||||||
_PyEval_SliceIndexNotNone, &stop)) {
|
_PyEval_SliceIndexNotNone, &stop)) {
|
||||||
|
@ -1133,17 +1125,13 @@ PyDoc_STRVAR(index_doc,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
deque_insert(dequeobject *deque, PyObject **args, Py_ssize_t nargs,
|
deque_insert(dequeobject *deque, PyObject **args, Py_ssize_t nargs)
|
||||||
PyObject *kwnames)
|
|
||||||
{
|
{
|
||||||
Py_ssize_t index;
|
Py_ssize_t index;
|
||||||
Py_ssize_t n = Py_SIZE(deque);
|
Py_ssize_t n = Py_SIZE(deque);
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
PyObject *rv;
|
PyObject *rv;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "nO:insert", &index, &value)) {
|
if (!_PyArg_ParseStack(args, nargs, "nO:insert", &index, &value)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2774,7 +2774,7 @@ typedef struct {
|
||||||
} XMLParserObject;
|
} XMLParserObject;
|
||||||
|
|
||||||
static PyObject*
|
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 *
|
static PyObject *
|
||||||
_elementtree_XMLParser_doctype_impl(XMLParserObject *self, PyObject *name,
|
_elementtree_XMLParser_doctype_impl(XMLParserObject *self, PyObject *name,
|
||||||
PyObject *pubid, PyObject *system);
|
PyObject *pubid, PyObject *system);
|
||||||
|
|
|
@ -967,7 +967,7 @@ generate_hash_name_list(void)
|
||||||
|
|
||||||
/* a PyMethodDef structure for the constructor */
|
/* a PyMethodDef structure for the constructor */
|
||||||
#define CONSTRUCTOR_METH_DEF(NAME) \
|
#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 \
|
PyDoc_STR("Returns a " #NAME \
|
||||||
" hash object; optionally initialized with a string") \
|
" hash object; optionally initialized with a string") \
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ PyDoc_STRVAR(_io_open__doc__,
|
||||||
"opened in a binary mode.");
|
"opened in a binary mode.");
|
||||||
|
|
||||||
#define _IO_OPEN_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
||||||
|
@ -158,4 +158,4 @@ _io_open(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=e6011c784fe6589b input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=7e0ab289d8465580 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -97,15 +97,11 @@ static PyObject *
|
||||||
_io__Buffered_peek_impl(buffered *self, Py_ssize_t size);
|
_io__Buffered_peek_impl(buffered *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t size = 0;
|
Py_ssize_t size = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("peek", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:peek",
|
if (!_PyArg_ParseStack(args, nargs, "|n:peek",
|
||||||
&size)) {
|
&size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -128,15 +124,11 @@ static PyObject *
|
||||||
_io__Buffered_read_impl(buffered *self, Py_ssize_t n);
|
_io__Buffered_read_impl(buffered *self, Py_ssize_t n);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t n = -1;
|
Py_ssize_t n = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
||||||
_Py_convert_optional_to_ssize_t, &n)) {
|
_Py_convert_optional_to_ssize_t, &n)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -159,15 +151,11 @@ static PyObject *
|
||||||
_io__Buffered_read1_impl(buffered *self, Py_ssize_t n);
|
_io__Buffered_read1_impl(buffered *self, Py_ssize_t n);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t n = -1;
|
Py_ssize_t n = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read1", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:read1",
|
if (!_PyArg_ParseStack(args, nargs, "|n:read1",
|
||||||
&n)) {
|
&n)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -252,15 +240,11 @@ static PyObject *
|
||||||
_io__Buffered_readline_impl(buffered *self, Py_ssize_t size);
|
_io__Buffered_readline_impl(buffered *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -283,16 +267,12 @@ static PyObject *
|
||||||
_io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence);
|
_io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *targetobj;
|
PyObject *targetobj;
|
||||||
int whence = 0;
|
int whence = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
|
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
|
||||||
&targetobj, &whence)) {
|
&targetobj, &whence)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -315,15 +295,11 @@ static PyObject *
|
||||||
_io__Buffered_truncate_impl(buffered *self, PyObject *pos);
|
_io__Buffered_truncate_impl(buffered *self, PyObject *pos);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *pos = Py_None;
|
PyObject *pos = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "truncate",
|
if (!_PyArg_UnpackStack(args, nargs, "truncate",
|
||||||
0, 1,
|
0, 1,
|
||||||
&pos)) {
|
&pos)) {
|
||||||
|
@ -500,4 +476,4 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=4f7490f82427c63b input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=2b817df0bf814ddc input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -164,15 +164,11 @@ static PyObject *
|
||||||
_io_BytesIO_read_impl(bytesio *self, Py_ssize_t size);
|
_io_BytesIO_read_impl(bytesio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -199,15 +195,11 @@ static PyObject *
|
||||||
_io_BytesIO_read1_impl(bytesio *self, Py_ssize_t size);
|
_io_BytesIO_read1_impl(bytesio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read1", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read1",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read1",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -235,15 +227,11 @@ static PyObject *
|
||||||
_io_BytesIO_readline_impl(bytesio *self, Py_ssize_t size);
|
_io_BytesIO_readline_impl(bytesio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -271,15 +259,11 @@ static PyObject *
|
||||||
_io_BytesIO_readlines_impl(bytesio *self, PyObject *arg);
|
_io_BytesIO_readlines_impl(bytesio *self, PyObject *arg);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *arg = Py_None;
|
PyObject *arg = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "readlines",
|
if (!_PyArg_UnpackStack(args, nargs, "readlines",
|
||||||
0, 1,
|
0, 1,
|
||||||
&arg)) {
|
&arg)) {
|
||||||
|
@ -342,15 +326,11 @@ static PyObject *
|
||||||
_io_BytesIO_truncate_impl(bytesio *self, Py_ssize_t size);
|
_io_BytesIO_truncate_impl(bytesio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = self->pos;
|
Py_ssize_t size = self->pos;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -380,16 +360,12 @@ static PyObject *
|
||||||
_io_BytesIO_seek_impl(bytesio *self, Py_ssize_t pos, int whence);
|
_io_BytesIO_seek_impl(bytesio *self, Py_ssize_t pos, int whence);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t pos;
|
Py_ssize_t pos;
|
||||||
int whence = 0;
|
int whence = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
|
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
|
||||||
&pos, &whence)) {
|
&pos, &whence)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -468,4 +444,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=9e63715414bffb2a input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=20946f5a2ed4492b input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -208,15 +208,11 @@ static PyObject *
|
||||||
_io_FileIO_read_impl(fileio *self, Py_ssize_t size);
|
_io_FileIO_read_impl(fileio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -284,16 +280,12 @@ static PyObject *
|
||||||
_io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence);
|
_io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *pos;
|
PyObject *pos;
|
||||||
int whence = 0;
|
int whence = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
|
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
|
||||||
&pos, &whence)) {
|
&pos, &whence)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -342,15 +334,11 @@ static PyObject *
|
||||||
_io_FileIO_truncate_impl(fileio *self, PyObject *posobj);
|
_io_FileIO_truncate_impl(fileio *self, PyObject *posobj);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *posobj = NULL;
|
PyObject *posobj = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "truncate",
|
if (!_PyArg_UnpackStack(args, nargs, "truncate",
|
||||||
0, 1,
|
0, 1,
|
||||||
&posobj)) {
|
&posobj)) {
|
||||||
|
@ -385,4 +373,4 @@ _io_FileIO_isatty(fileio *self, PyObject *Py_UNUSED(ignored))
|
||||||
#ifndef _IO_FILEIO_TRUNCATE_METHODDEF
|
#ifndef _IO_FILEIO_TRUNCATE_METHODDEF
|
||||||
#define _IO_FILEIO_TRUNCATE_METHODDEF
|
#define _IO_FILEIO_TRUNCATE_METHODDEF
|
||||||
#endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */
|
#endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */
|
||||||
/*[clinic end generated code: output=2c6a5470100a8f10 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=1af8b4031633b763 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -180,15 +180,11 @@ static PyObject *
|
||||||
_io__IOBase_readline_impl(PyObject *self, Py_ssize_t limit);
|
_io__IOBase_readline_impl(PyObject *self, Py_ssize_t limit);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t limit = -1;
|
Py_ssize_t limit = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
||||||
_Py_convert_optional_to_ssize_t, &limit)) {
|
_Py_convert_optional_to_ssize_t, &limit)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -216,15 +212,11 @@ static PyObject *
|
||||||
_io__IOBase_readlines_impl(PyObject *self, Py_ssize_t hint);
|
_io__IOBase_readlines_impl(PyObject *self, Py_ssize_t hint);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t hint = -1;
|
Py_ssize_t hint = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:readlines",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:readlines",
|
||||||
_Py_convert_optional_to_ssize_t, &hint)) {
|
_Py_convert_optional_to_ssize_t, &hint)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -255,15 +247,11 @@ static PyObject *
|
||||||
_io__RawIOBase_read_impl(PyObject *self, Py_ssize_t n);
|
_io__RawIOBase_read_impl(PyObject *self, Py_ssize_t n);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t n = -1;
|
Py_ssize_t n = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:read",
|
if (!_PyArg_ParseStack(args, nargs, "|n:read",
|
||||||
&n)) {
|
&n)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -291,4 +279,4 @@ _io__RawIOBase_readall(PyObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return _io__RawIOBase_readall_impl(self);
|
return _io__RawIOBase_readall_impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=8361ae8d81d072bf input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=1dc5cc1a9977d73f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -54,15 +54,11 @@ static PyObject *
|
||||||
_io_StringIO_read_impl(stringio *self, Py_ssize_t size);
|
_io_StringIO_read_impl(stringio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -88,15 +84,11 @@ static PyObject *
|
||||||
_io_StringIO_readline_impl(stringio *self, Py_ssize_t size);
|
_io_StringIO_readline_impl(stringio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:readline",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -124,15 +116,11 @@ static PyObject *
|
||||||
_io_StringIO_truncate_impl(stringio *self, Py_ssize_t size);
|
_io_StringIO_truncate_impl(stringio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
Py_ssize_t size = self->pos;
|
Py_ssize_t size = self->pos;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:truncate",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -162,16 +150,12 @@ static PyObject *
|
||||||
_io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence);
|
_io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t pos;
|
Py_ssize_t pos;
|
||||||
int whence = 0;
|
int whence = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
|
if (!_PyArg_ParseStack(args, nargs, "n|i:seek",
|
||||||
&pos, &whence)) {
|
&pos, &whence)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -302,4 +286,4 @@ _io_StringIO_seekable(stringio *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return _io_StringIO_seekable_impl(self);
|
return _io_StringIO_seekable_impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=443f5dd99bbbd053 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=a5e963d90b4eedc0 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -46,7 +46,7 @@ PyDoc_STRVAR(_io_IncrementalNewlineDecoder_decode__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _IO_INCREMENTALNEWLINEDECODER_DECODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self,
|
_io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self,
|
||||||
|
@ -185,7 +185,7 @@ PyDoc_STRVAR(_io_TextIOWrapper_reconfigure__doc__,
|
||||||
"This also does an implicit stream flush.");
|
"This also does an implicit stream flush.");
|
||||||
|
|
||||||
#define _IO_TEXTIOWRAPPER_RECONFIGURE_METHODDEF \
|
#define _IO_TEXTIOWRAPPER_RECONFIGURE_METHODDEF \
|
||||||
{"reconfigure", (PyCFunction)_io_TextIOWrapper_reconfigure, METH_FASTCALL, _io_TextIOWrapper_reconfigure__doc__},
|
{"reconfigure", (PyCFunction)_io_TextIOWrapper_reconfigure, METH_FASTCALL|METH_KEYWORDS, _io_TextIOWrapper_reconfigure__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_io_TextIOWrapper_reconfigure_impl(textio *self,
|
_io_TextIOWrapper_reconfigure_impl(textio *self,
|
||||||
|
@ -266,15 +266,11 @@ static PyObject *
|
||||||
_io_TextIOWrapper_read_impl(textio *self, Py_ssize_t n);
|
_io_TextIOWrapper_read_impl(textio *self, Py_ssize_t n);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t n = -1;
|
Py_ssize_t n = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
||||||
_Py_convert_optional_to_ssize_t, &n)) {
|
_Py_convert_optional_to_ssize_t, &n)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -297,15 +293,11 @@ static PyObject *
|
||||||
_io_TextIOWrapper_readline_impl(textio *self, Py_ssize_t size);
|
_io_TextIOWrapper_readline_impl(textio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:readline",
|
if (!_PyArg_ParseStack(args, nargs, "|n:readline",
|
||||||
&size)) {
|
&size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -328,16 +320,12 @@ static PyObject *
|
||||||
_io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence);
|
_io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *cookieObj;
|
PyObject *cookieObj;
|
||||||
int whence = 0;
|
int whence = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("seek", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
|
if (!_PyArg_ParseStack(args, nargs, "O|i:seek",
|
||||||
&cookieObj, &whence)) {
|
&cookieObj, &whence)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -377,15 +365,11 @@ static PyObject *
|
||||||
_io_TextIOWrapper_truncate_impl(textio *self, PyObject *pos);
|
_io_TextIOWrapper_truncate_impl(textio *self, PyObject *pos);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *pos = Py_None;
|
PyObject *pos = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("truncate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "truncate",
|
if (!_PyArg_UnpackStack(args, nargs, "truncate",
|
||||||
0, 1,
|
0, 1,
|
||||||
&pos)) {
|
&pos)) {
|
||||||
|
@ -515,4 +499,4 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return _io_TextIOWrapper_close_impl(self);
|
return _io_TextIOWrapper_close_impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=8ffc6d2557c9c620 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=937989df0a8abfc3 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -215,15 +215,11 @@ static PyObject *
|
||||||
_io__WindowsConsoleIO_read_impl(winconsoleio *self, Py_ssize_t size);
|
_io__WindowsConsoleIO_read_impl(winconsoleio *self, Py_ssize_t size);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t size = -1;
|
Py_ssize_t size = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:read",
|
||||||
_Py_convert_optional_to_ssize_t, &size)) {
|
_Py_convert_optional_to_ssize_t, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -332,4 +328,4 @@ _io__WindowsConsoleIO_isatty(winconsoleio *self, PyObject *Py_UNUSED(ignored))
|
||||||
#ifndef _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
|
#ifndef _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
|
||||||
#define _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
|
#define _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
|
||||||
#endif /* !defined(_IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF) */
|
#endif /* !defined(_IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF) */
|
||||||
/*[clinic end generated code: output=3bbf6f893a58f476 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=7f74992fcd5bd89d input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -99,7 +99,7 @@ PyDoc_STRVAR(_sha3_shake_128_digest__doc__,
|
||||||
"Return the digest value as a string of binary data.");
|
"Return the digest value as a string of binary data.");
|
||||||
|
|
||||||
#define _SHA3_SHAKE_128_DIGEST_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sha3_shake_128_digest_impl(SHA3object *self, unsigned long length);
|
_sha3_shake_128_digest_impl(SHA3object *self, unsigned long length);
|
||||||
|
@ -129,7 +129,7 @@ PyDoc_STRVAR(_sha3_shake_128_hexdigest__doc__,
|
||||||
"Return the digest value as a string of hexadecimal digits.");
|
"Return the digest value as a string of hexadecimal digits.");
|
||||||
|
|
||||||
#define _SHA3_SHAKE_128_HEXDIGEST_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sha3_shake_128_hexdigest_impl(SHA3object *self, unsigned long length);
|
_sha3_shake_128_hexdigest_impl(SHA3object *self, unsigned long length);
|
||||||
|
@ -151,4 +151,4 @@ _sha3_shake_128_hexdigest(SHA3object *self, PyObject **args, Py_ssize_t nargs, P
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=f2278bf0852a7850 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=7c1ac102411764f2 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -1817,15 +1817,12 @@ to the format string S.format. See help(struct) for more on format\n\
|
||||||
strings.");
|
strings.");
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyStructObject *soself;
|
||||||
PyObject *result;
|
PyObject *result;
|
||||||
|
|
||||||
/* Validate arguments. */
|
/* Validate arguments. */
|
||||||
if (!_PyArg_NoStackKeywords("pack", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
soself = (PyStructObject *)self;
|
soself = (PyStructObject *)self;
|
||||||
assert(PyStruct_Check(self));
|
assert(PyStruct_Check(self));
|
||||||
assert(soself->s_codes != NULL);
|
assert(soself->s_codes != NULL);
|
||||||
|
@ -1859,16 +1856,13 @@ offset. Note that the offset is a required argument. See\n\
|
||||||
help(struct) for more on format strings.");
|
help(struct) for more on format strings.");
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyStructObject *soself;
|
||||||
Py_buffer buffer;
|
Py_buffer buffer;
|
||||||
Py_ssize_t offset;
|
Py_ssize_t offset;
|
||||||
|
|
||||||
/* Validate arguments. +1 is for the first arg as buffer. */
|
/* Validate arguments. +1 is for the first arg as buffer. */
|
||||||
if (!_PyArg_NoStackKeywords("pack_into", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
soself = (PyStructObject *)self;
|
soself = (PyStructObject *)self;
|
||||||
assert(PyStruct_Check(self));
|
assert(PyStruct_Check(self));
|
||||||
assert(soself->s_codes != NULL);
|
assert(soself->s_codes != NULL);
|
||||||
|
@ -2126,15 +2120,11 @@ Return a bytes object containing the values v1, v2, ... packed according\n\
|
||||||
to the format string. See help(struct) for more on format strings.");
|
to the format string. See help(struct) for more on format strings.");
|
||||||
|
|
||||||
static PyObject *
|
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 *s_object = NULL;
|
||||||
PyObject *format, *result;
|
PyObject *format, *result;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pack", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nargs == 0) {
|
if (nargs == 0) {
|
||||||
PyErr_SetString(PyExc_TypeError, "missing format argument");
|
PyErr_SetString(PyExc_TypeError, "missing format argument");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -2144,7 +2134,7 @@ pack(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
if (!cache_struct_converter(format, &s_object)) {
|
if (!cache_struct_converter(format, &s_object)) {
|
||||||
return NULL;
|
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);
|
Py_DECREF(s_object);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -2158,15 +2148,11 @@ that the offset is a required argument. See help(struct) for more\n\
|
||||||
on format strings.");
|
on format strings.");
|
||||||
|
|
||||||
static PyObject *
|
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 *s_object = NULL;
|
||||||
PyObject *format, *result;
|
PyObject *format, *result;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pack_into", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nargs == 0) {
|
if (nargs == 0) {
|
||||||
PyErr_SetString(PyExc_TypeError, "missing format argument");
|
PyErr_SetString(PyExc_TypeError, "missing format argument");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -2176,7 +2162,7 @@ pack_into(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
if (!cache_struct_converter(format, &s_object)) {
|
if (!cache_struct_converter(format, &s_object)) {
|
||||||
return NULL;
|
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);
|
Py_DECREF(s_object);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteCodec_encode__doc__,
|
||||||
"registered with codecs.register_error that can handle UnicodeEncodeErrors.");
|
"registered with codecs.register_error that can handle UnicodeEncodeErrors.");
|
||||||
|
|
||||||
#define _MULTIBYTECODEC_MULTIBYTECODEC_ENCODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self,
|
_multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self,
|
||||||
|
@ -52,7 +52,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteCodec_decode__doc__,
|
||||||
"codecs.register_error that is able to handle UnicodeDecodeErrors.\"");
|
"codecs.register_error that is able to handle UnicodeDecodeErrors.\"");
|
||||||
|
|
||||||
#define _MULTIBYTECODEC_MULTIBYTECODEC_DECODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self,
|
_multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self,
|
||||||
|
@ -89,7 +89,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_encode__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _MULTIBYTECODEC_MULTIBYTEINCREMENTALENCODER_ENCODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self,
|
_multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self,
|
||||||
|
@ -138,7 +138,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_decode__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _MULTIBYTECODEC_MULTIBYTEINCREMENTALDECODER_DECODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self,
|
_multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self,
|
||||||
|
@ -199,15 +199,11 @@ _multibytecodec_MultibyteStreamReader_read_impl(MultibyteStreamReaderObject *sel
|
||||||
PyObject *sizeobj);
|
PyObject *sizeobj);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *sizeobj = Py_None;
|
PyObject *sizeobj = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "read",
|
if (!_PyArg_UnpackStack(args, nargs, "read",
|
||||||
0, 1,
|
0, 1,
|
||||||
&sizeobj)) {
|
&sizeobj)) {
|
||||||
|
@ -232,15 +228,11 @@ _multibytecodec_MultibyteStreamReader_readline_impl(MultibyteStreamReaderObject
|
||||||
PyObject *sizeobj);
|
PyObject *sizeobj);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *sizeobj = Py_None;
|
PyObject *sizeobj = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readline", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "readline",
|
if (!_PyArg_UnpackStack(args, nargs, "readline",
|
||||||
0, 1,
|
0, 1,
|
||||||
&sizeobj)) {
|
&sizeobj)) {
|
||||||
|
@ -265,15 +257,11 @@ _multibytecodec_MultibyteStreamReader_readlines_impl(MultibyteStreamReaderObject
|
||||||
PyObject *sizehintobj);
|
PyObject *sizehintobj);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *sizehintobj = Py_None;
|
PyObject *sizehintobj = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readlines", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "readlines",
|
if (!_PyArg_UnpackStack(args, nargs, "readlines",
|
||||||
0, 1,
|
0, 1,
|
||||||
&sizehintobj)) {
|
&sizehintobj)) {
|
||||||
|
@ -342,4 +330,4 @@ PyDoc_STRVAR(_multibytecodec___create_codec__doc__,
|
||||||
|
|
||||||
#define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \
|
#define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \
|
||||||
{"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__},
|
{"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__},
|
||||||
/*[clinic end generated code: output=12192026a9d55d48 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=dc2352619de9d74f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -267,7 +267,7 @@ PyDoc_STRVAR(_asyncio_Task_current_task__doc__,
|
||||||
"None is returned when called not in the context of a Task.");
|
"None is returned when called not in the context of a Task.");
|
||||||
|
|
||||||
#define _ASYNCIO_TASK_CURRENT_TASK_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_asyncio_Task_current_task_impl(PyTypeObject *type, PyObject *loop);
|
_asyncio_Task_current_task_impl(PyTypeObject *type, PyObject *loop);
|
||||||
|
@ -299,7 +299,7 @@ PyDoc_STRVAR(_asyncio_Task_all_tasks__doc__,
|
||||||
"By default all tasks for the current event loop are returned.");
|
"By default all tasks for the current event loop are returned.");
|
||||||
|
|
||||||
#define _ASYNCIO_TASK_ALL_TASKS_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_asyncio_Task_all_tasks_impl(PyTypeObject *type, PyObject *loop);
|
_asyncio_Task_all_tasks_impl(PyTypeObject *type, PyObject *loop);
|
||||||
|
@ -399,7 +399,7 @@ PyDoc_STRVAR(_asyncio_Task_get_stack__doc__,
|
||||||
"returned for a suspended coroutine.");
|
"returned for a suspended coroutine.");
|
||||||
|
|
||||||
#define _ASYNCIO_TASK_GET_STACK_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_asyncio_Task_get_stack_impl(TaskObj *self, PyObject *limit);
|
_asyncio_Task_get_stack_impl(TaskObj *self, PyObject *limit);
|
||||||
|
@ -435,7 +435,7 @@ PyDoc_STRVAR(_asyncio_Task_print_stack__doc__,
|
||||||
"to sys.stderr.");
|
"to sys.stderr.");
|
||||||
|
|
||||||
#define _ASYNCIO_TASK_PRINT_STACK_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_asyncio_Task_print_stack_impl(TaskObj *self, PyObject *limit,
|
_asyncio_Task_print_stack_impl(TaskObj *self, PyObject *limit,
|
||||||
|
@ -466,7 +466,7 @@ PyDoc_STRVAR(_asyncio_Task__step__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ASYNCIO_TASK__STEP_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_asyncio_Task__step_impl(TaskObj *self, PyObject *exc);
|
_asyncio_Task__step_impl(TaskObj *self, PyObject *exc);
|
||||||
|
@ -495,7 +495,7 @@ PyDoc_STRVAR(_asyncio_Task__wakeup__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ASYNCIO_TASK__WAKEUP_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_asyncio_Task__wakeup_impl(TaskObj *self, PyObject *fut);
|
_asyncio_Task__wakeup_impl(TaskObj *self, PyObject *fut);
|
||||||
|
@ -517,4 +517,4 @@ _asyncio_Task__wakeup(TaskObj *self, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=3dfec49689cebd4c input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=fe651840e0466fa9 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -115,7 +115,7 @@ PyDoc_STRVAR(_bz2_BZ2Decompressor_decompress__doc__,
|
||||||
"the unused_data attribute.");
|
"the unused_data attribute.");
|
||||||
|
|
||||||
#define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \
|
#define _BZ2_BZ2DECOMPRESSOR_DECOMPRESS_METHODDEF \
|
||||||
{"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_FASTCALL, _bz2_BZ2Decompressor_decompress__doc__},
|
{"decompress", (PyCFunction)_bz2_BZ2Decompressor_decompress, METH_FASTCALL|METH_KEYWORDS, _bz2_BZ2Decompressor_decompress__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data,
|
_bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data,
|
||||||
|
@ -174,4 +174,4 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=0e97a1d716b35a14 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=835673574cf12cc4 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -55,7 +55,7 @@ PyDoc_STRVAR(_codecs_encode__doc__,
|
||||||
"codecs.register_error that can handle ValueErrors.");
|
"codecs.register_error that can handle ValueErrors.");
|
||||||
|
|
||||||
#define _CODECS_ENCODE_METHODDEF \
|
#define _CODECS_ENCODE_METHODDEF \
|
||||||
{"encode", (PyCFunction)_codecs_encode, METH_FASTCALL, _codecs_encode__doc__},
|
{"encode", (PyCFunction)_codecs_encode, METH_FASTCALL|METH_KEYWORDS, _codecs_encode__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
_codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
||||||
|
@ -94,7 +94,7 @@ PyDoc_STRVAR(_codecs_decode__doc__,
|
||||||
"codecs.register_error that can handle ValueErrors.");
|
"codecs.register_error that can handle ValueErrors.");
|
||||||
|
|
||||||
#define _CODECS_DECODE_METHODDEF \
|
#define _CODECS_DECODE_METHODDEF \
|
||||||
{"decode", (PyCFunction)_codecs_decode, METH_FASTCALL, _codecs_decode__doc__},
|
{"decode", (PyCFunction)_codecs_decode, METH_FASTCALL|METH_KEYWORDS, _codecs_decode__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
_codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
||||||
|
@ -160,16 +160,12 @@ _codecs_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("escape_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s*|z:escape_decode",
|
if (!_PyArg_ParseStack(args, nargs, "s*|z:escape_decode",
|
||||||
&data, &errors)) {
|
&data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -198,16 +194,12 @@ _codecs_escape_encode_impl(PyObject *module, PyObject *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *data;
|
PyObject *data;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("escape_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O!|z:escape_encode",
|
if (!_PyArg_ParseStack(args, nargs, "O!|z:escape_encode",
|
||||||
&PyBytes_Type, &data, &errors)) {
|
&PyBytes_Type, &data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -231,16 +223,12 @@ _codecs_unicode_internal_decode_impl(PyObject *module, PyObject *obj,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("unicode_internal_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_decode",
|
if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_decode",
|
||||||
&obj, &errors)) {
|
&obj, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -264,17 +252,13 @@ _codecs_utf_7_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_7_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_7_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_7_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -303,17 +287,13 @@ _codecs_utf_8_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_8_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_8_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_8_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -342,17 +322,13 @@ _codecs_utf_16_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -381,17 +357,13 @@ _codecs_utf_16_le_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_le_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_le_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_le_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -420,17 +392,13 @@ _codecs_utf_16_be_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_be_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_be_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_16_be_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -460,7 +428,7 @@ _codecs_utf_16_ex_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int byteorder, int final);
|
const char *errors, int byteorder, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
|
@ -468,10 +436,6 @@ _codecs_utf_16_ex_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, Py
|
||||||
int byteorder = 0;
|
int byteorder = 0;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_ex_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_16_ex_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_16_ex_decode",
|
||||||
&data, &errors, &byteorder, &final)) {
|
&data, &errors, &byteorder, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -500,17 +464,13 @@ _codecs_utf_32_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -539,17 +499,13 @@ _codecs_utf_32_le_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_le_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_le_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_le_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -578,17 +534,13 @@ _codecs_utf_32_be_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_be_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_be_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:utf_32_be_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -618,7 +570,7 @@ _codecs_utf_32_ex_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int byteorder, int final);
|
const char *errors, int byteorder, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
|
@ -626,10 +578,6 @@ _codecs_utf_32_ex_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, Py
|
||||||
int byteorder = 0;
|
int byteorder = 0;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_ex_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_32_ex_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zii:utf_32_ex_decode",
|
||||||
&data, &errors, &byteorder, &final)) {
|
&data, &errors, &byteorder, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -658,16 +606,12 @@ _codecs_unicode_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("unicode_escape_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s*|z:unicode_escape_decode",
|
if (!_PyArg_ParseStack(args, nargs, "s*|z:unicode_escape_decode",
|
||||||
&data, &errors)) {
|
&data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -696,16 +640,12 @@ _codecs_raw_unicode_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("raw_unicode_escape_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s*|z:raw_unicode_escape_decode",
|
if (!_PyArg_ParseStack(args, nargs, "s*|z:raw_unicode_escape_decode",
|
||||||
&data, &errors)) {
|
&data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -734,16 +674,12 @@ _codecs_latin_1_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("latin_1_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|z:latin_1_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|z:latin_1_decode",
|
||||||
&data, &errors)) {
|
&data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -772,16 +708,12 @@ _codecs_ascii_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ascii_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|z:ascii_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|z:ascii_decode",
|
||||||
&data, &errors)) {
|
&data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -810,17 +742,13 @@ _codecs_charmap_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, PyObject *mapping);
|
const char *errors, PyObject *mapping);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
PyObject *mapping = NULL;
|
PyObject *mapping = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("charmap_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zO:charmap_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zO:charmap_decode",
|
||||||
&data, &errors, &mapping)) {
|
&data, &errors, &mapping)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -851,17 +779,13 @@ _codecs_mbcs_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("mbcs_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:mbcs_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:mbcs_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -894,17 +818,13 @@ _codecs_oem_decode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors, int final);
|
const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("oem_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|zi:oem_decode",
|
if (!_PyArg_ParseStack(args, nargs, "y*|zi:oem_decode",
|
||||||
&data, &errors, &final)) {
|
&data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -937,7 +857,7 @@ _codecs_code_page_decode_impl(PyObject *module, int codepage,
|
||||||
Py_buffer *data, const char *errors, int final);
|
Py_buffer *data, const char *errors, int final);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int codepage;
|
int codepage;
|
||||||
|
@ -945,10 +865,6 @@ _codecs_code_page_decode(PyObject *module, PyObject **args, Py_ssize_t nargs, Py
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int final = 0;
|
int final = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("code_page_decode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iy*|zi:code_page_decode",
|
if (!_PyArg_ParseStack(args, nargs, "iy*|zi:code_page_decode",
|
||||||
&codepage, &data, &errors, &final)) {
|
&codepage, &data, &errors, &final)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -979,16 +895,12 @@ _codecs_readbuffer_encode_impl(PyObject *module, Py_buffer *data,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("readbuffer_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s*|z:readbuffer_encode",
|
if (!_PyArg_ParseStack(args, nargs, "s*|z:readbuffer_encode",
|
||||||
&data, &errors)) {
|
&data, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1017,16 +929,12 @@ _codecs_unicode_internal_encode_impl(PyObject *module, PyObject *obj,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("unicode_internal_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_encode",
|
if (!_PyArg_ParseStack(args, nargs, "O|z:unicode_internal_encode",
|
||||||
&obj, &errors)) {
|
&obj, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1050,16 +958,12 @@ _codecs_utf_7_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_7_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_7_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_7_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1083,16 +987,12 @@ _codecs_utf_8_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_8_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_8_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_8_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1116,17 +1016,13 @@ _codecs_utf_16_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors, int byteorder);
|
const char *errors, int byteorder);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int byteorder = 0;
|
int byteorder = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_16_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_16_encode",
|
||||||
&str, &errors, &byteorder)) {
|
&str, &errors, &byteorder)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1150,16 +1046,12 @@ _codecs_utf_16_le_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_le_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_le_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_le_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1183,16 +1075,12 @@ _codecs_utf_16_be_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_16_be_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_be_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_16_be_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1216,17 +1104,13 @@ _codecs_utf_32_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors, int byteorder);
|
const char *errors, int byteorder);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
int byteorder = 0;
|
int byteorder = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_32_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|zi:utf_32_encode",
|
||||||
&str, &errors, &byteorder)) {
|
&str, &errors, &byteorder)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1250,16 +1134,12 @@ _codecs_utf_32_le_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_le_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_le_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_le_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1283,16 +1163,12 @@ _codecs_utf_32_be_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("utf_32_be_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_be_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:utf_32_be_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1316,16 +1192,12 @@ _codecs_unicode_escape_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("unicode_escape_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:unicode_escape_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:unicode_escape_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1349,16 +1221,12 @@ _codecs_raw_unicode_escape_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("raw_unicode_escape_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:raw_unicode_escape_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:raw_unicode_escape_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1382,16 +1250,12 @@ _codecs_latin_1_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("latin_1_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:latin_1_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:latin_1_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1415,16 +1279,12 @@ _codecs_ascii_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ascii_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:ascii_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:ascii_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1448,17 +1308,13 @@ _codecs_charmap_encode_impl(PyObject *module, PyObject *str,
|
||||||
const char *errors, PyObject *mapping);
|
const char *errors, PyObject *mapping);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
PyObject *mapping = NULL;
|
PyObject *mapping = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("charmap_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|zO:charmap_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|zO:charmap_encode",
|
||||||
&str, &errors, &mapping)) {
|
&str, &errors, &mapping)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1509,16 +1365,12 @@ static PyObject *
|
||||||
_codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors);
|
_codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("mbcs_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:mbcs_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:mbcs_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1545,16 +1397,12 @@ static PyObject *
|
||||||
_codecs_oem_encode_impl(PyObject *module, PyObject *str, const char *errors);
|
_codecs_oem_encode_impl(PyObject *module, PyObject *str, const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("oem_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "U|z:oem_encode",
|
if (!_PyArg_ParseStack(args, nargs, "U|z:oem_encode",
|
||||||
&str, &errors)) {
|
&str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1582,17 +1430,13 @@ _codecs_code_page_encode_impl(PyObject *module, int code_page, PyObject *str,
|
||||||
const char *errors);
|
const char *errors);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int code_page;
|
int code_page;
|
||||||
PyObject *str;
|
PyObject *str;
|
||||||
const char *errors = NULL;
|
const char *errors = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("code_page_encode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iU|z:code_page_encode",
|
if (!_PyArg_ParseStack(args, nargs, "iU|z:code_page_encode",
|
||||||
&code_page, &str, &errors)) {
|
&code_page, &str, &errors)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1623,16 +1467,12 @@ _codecs_register_error_impl(PyObject *module, const char *errors,
|
||||||
PyObject *handler);
|
PyObject *handler);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *errors;
|
const char *errors;
|
||||||
PyObject *handler;
|
PyObject *handler;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("register_error", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "sO:register_error",
|
if (!_PyArg_ParseStack(args, nargs, "sO:register_error",
|
||||||
&errors, &handler)) {
|
&errors, &handler)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1696,4 +1536,4 @@ exit:
|
||||||
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
||||||
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
||||||
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
|
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
|
||||||
/*[clinic end generated code: output=11fdb992ba55fd73 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=894910ed4900eeae input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -20,16 +20,12 @@ static PyObject *
|
||||||
crypt_crypt_impl(PyObject *module, const char *word, const char *salt);
|
crypt_crypt_impl(PyObject *module, const char *word, const char *salt);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *word;
|
const char *word;
|
||||||
const char *salt;
|
const char *salt;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("crypt", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ss:crypt",
|
if (!_PyArg_ParseStack(args, nargs, "ss:crypt",
|
||||||
&word, &salt)) {
|
&word, &salt)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -39,4 +35,4 @@ crypt_crypt(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=ebdc6b6a5dec4539 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=f5a6aff28d43154f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -14,7 +14,7 @@ PyDoc_STRVAR(datetime_datetime_now__doc__,
|
||||||
"If no tz is specified, uses local timezone.");
|
"If no tz is specified, uses local timezone.");
|
||||||
|
|
||||||
#define DATETIME_DATETIME_NOW_METHODDEF \
|
#define DATETIME_DATETIME_NOW_METHODDEF \
|
||||||
{"now", (PyCFunction)datetime_datetime_now, METH_FASTCALL|METH_CLASS, datetime_datetime_now__doc__},
|
{"now", (PyCFunction)datetime_datetime_now, METH_FASTCALL|METH_KEYWORDS|METH_CLASS, datetime_datetime_now__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
datetime_datetime_now_impl(PyTypeObject *type, PyObject *tz);
|
datetime_datetime_now_impl(PyTypeObject *type, PyObject *tz);
|
||||||
|
@ -36,4 +36,4 @@ datetime_datetime_now(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyO
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=ff78f2f51687e9a9 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=93cb014e47dae4b3 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -52,17 +52,13 @@ _dbm_dbm_get_impl(dbmobject *self, const char *key,
|
||||||
Py_ssize_clean_t key_length, PyObject *default_value);
|
Py_ssize_clean_t key_length, PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *key;
|
const char *key;
|
||||||
Py_ssize_clean_t key_length;
|
Py_ssize_clean_t key_length;
|
||||||
PyObject *default_value = NULL;
|
PyObject *default_value = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("get", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s#|O:get",
|
if (!_PyArg_ParseStack(args, nargs, "s#|O:get",
|
||||||
&key, &key_length, &default_value)) {
|
&key, &key_length, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -90,17 +86,13 @@ _dbm_dbm_setdefault_impl(dbmobject *self, const char *key,
|
||||||
PyObject *default_value);
|
PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *key;
|
const char *key;
|
||||||
Py_ssize_clean_t key_length;
|
Py_ssize_clean_t key_length;
|
||||||
PyObject *default_value = NULL;
|
PyObject *default_value = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s#|O:setdefault",
|
if (!_PyArg_ParseStack(args, nargs, "s#|O:setdefault",
|
||||||
&key, &key_length, &default_value)) {
|
&key, &key_length, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -133,17 +125,13 @@ dbmopen_impl(PyObject *module, const char *filename, const char *flags,
|
||||||
int mode);
|
int mode);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *filename;
|
const char *filename;
|
||||||
const char *flags = "r";
|
const char *flags = "r";
|
||||||
int mode = 438;
|
int mode = 438;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("open", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
|
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
|
||||||
&filename, &flags, &mode)) {
|
&filename, &flags, &mode)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -153,4 +141,4 @@ dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=35a8df9a8e4ed18f input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=627d28ce1f3188dc input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -136,7 +136,7 @@ PyDoc_STRVAR(_elementtree_Element_find__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_FIND_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_elementtree_Element_find_impl(ElementObject *self, PyObject *path,
|
_elementtree_Element_find_impl(ElementObject *self, PyObject *path,
|
||||||
|
@ -167,7 +167,7 @@ PyDoc_STRVAR(_elementtree_Element_findtext__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_FINDTEXT_METHODDEF \
|
#define _ELEMENTTREE_ELEMENT_FINDTEXT_METHODDEF \
|
||||||
{"findtext", (PyCFunction)_elementtree_Element_findtext, METH_FASTCALL, _elementtree_Element_findtext__doc__},
|
{"findtext", (PyCFunction)_elementtree_Element_findtext, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_findtext__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_elementtree_Element_findtext_impl(ElementObject *self, PyObject *path,
|
_elementtree_Element_findtext_impl(ElementObject *self, PyObject *path,
|
||||||
|
@ -200,7 +200,7 @@ PyDoc_STRVAR(_elementtree_Element_findall__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_FINDALL_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_elementtree_Element_findall_impl(ElementObject *self, PyObject *path,
|
_elementtree_Element_findall_impl(ElementObject *self, PyObject *path,
|
||||||
|
@ -231,7 +231,7 @@ PyDoc_STRVAR(_elementtree_Element_iterfind__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_elementtree_Element_iterfind_impl(ElementObject *self, PyObject *path,
|
_elementtree_Element_iterfind_impl(ElementObject *self, PyObject *path,
|
||||||
|
@ -262,7 +262,7 @@ PyDoc_STRVAR(_elementtree_Element_get__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_GET_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_elementtree_Element_get_impl(ElementObject *self, PyObject *key,
|
_elementtree_Element_get_impl(ElementObject *self, PyObject *key,
|
||||||
|
@ -310,7 +310,7 @@ PyDoc_STRVAR(_elementtree_Element_iter__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_ITER_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_elementtree_Element_iter_impl(ElementObject *self, PyObject *tag);
|
_elementtree_Element_iter_impl(ElementObject *self, PyObject *tag);
|
||||||
|
@ -339,7 +339,7 @@ PyDoc_STRVAR(_elementtree_Element_getiterator__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _ELEMENTTREE_ELEMENT_GETITERATOR_METHODDEF \
|
#define _ELEMENTTREE_ELEMENT_GETITERATOR_METHODDEF \
|
||||||
{"getiterator", (PyCFunction)_elementtree_Element_getiterator, METH_FASTCALL, _elementtree_Element_getiterator__doc__},
|
{"getiterator", (PyCFunction)_elementtree_Element_getiterator, METH_FASTCALL|METH_KEYWORDS, _elementtree_Element_getiterator__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_elementtree_Element_getiterator_impl(ElementObject *self, PyObject *tag);
|
_elementtree_Element_getiterator_impl(ElementObject *self, PyObject *tag);
|
||||||
|
@ -392,16 +392,12 @@ _elementtree_Element_insert_impl(ElementObject *self, Py_ssize_t index,
|
||||||
PyObject *subelement);
|
PyObject *subelement);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t index;
|
Py_ssize_t index;
|
||||||
PyObject *subelement;
|
PyObject *subelement;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "nO!:insert",
|
if (!_PyArg_ParseStack(args, nargs, "nO!:insert",
|
||||||
&index, &Element_Type, &subelement)) {
|
&index, &Element_Type, &subelement)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -459,16 +455,12 @@ _elementtree_Element_makeelement_impl(ElementObject *self, PyObject *tag,
|
||||||
PyObject *attrib);
|
PyObject *attrib);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *tag;
|
PyObject *tag;
|
||||||
PyObject *attrib;
|
PyObject *attrib;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("makeelement", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "makeelement",
|
if (!_PyArg_UnpackStack(args, nargs, "makeelement",
|
||||||
2, 2,
|
2, 2,
|
||||||
&tag, &attrib)) {
|
&tag, &attrib)) {
|
||||||
|
@ -519,16 +511,12 @@ _elementtree_Element_set_impl(ElementObject *self, PyObject *key,
|
||||||
PyObject *value);
|
PyObject *value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("set", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "set",
|
if (!_PyArg_UnpackStack(args, nargs, "set",
|
||||||
2, 2,
|
2, 2,
|
||||||
&key, &value)) {
|
&key, &value)) {
|
||||||
|
@ -608,16 +596,12 @@ _elementtree_TreeBuilder_start_impl(TreeBuilderObject *self, PyObject *tag,
|
||||||
PyObject *attrs);
|
PyObject *attrs);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *tag;
|
PyObject *tag;
|
||||||
PyObject *attrs = Py_None;
|
PyObject *attrs = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("start", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "start",
|
if (!_PyArg_UnpackStack(args, nargs, "start",
|
||||||
1, 2,
|
1, 2,
|
||||||
&tag, &attrs)) {
|
&tag, &attrs)) {
|
||||||
|
@ -699,17 +683,13 @@ _elementtree_XMLParser_doctype_impl(XMLParserObject *self, PyObject *name,
|
||||||
PyObject *pubid, PyObject *system);
|
PyObject *pubid, PyObject *system);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *name;
|
PyObject *name;
|
||||||
PyObject *pubid;
|
PyObject *pubid;
|
||||||
PyObject *system;
|
PyObject *system;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("doctype", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "doctype",
|
if (!_PyArg_UnpackStack(args, nargs, "doctype",
|
||||||
3, 3,
|
3, 3,
|
||||||
&name, &pubid, &system)) {
|
&name, &pubid, &system)) {
|
||||||
|
@ -735,16 +715,12 @@ _elementtree_XMLParser__setevents_impl(XMLParserObject *self,
|
||||||
PyObject *events_to_report);
|
PyObject *events_to_report);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *events_queue;
|
PyObject *events_queue;
|
||||||
PyObject *events_to_report = Py_None;
|
PyObject *events_to_report = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("_setevents", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "_setevents",
|
if (!_PyArg_UnpackStack(args, nargs, "_setevents",
|
||||||
1, 2,
|
1, 2,
|
||||||
&events_queue, &events_to_report)) {
|
&events_queue, &events_to_report)) {
|
||||||
|
@ -755,4 +731,4 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject **args, Py_ssi
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=6606b1018d2562e1 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=75d0ff80e20b830f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -15,16 +15,12 @@ static PyObject *
|
||||||
_gdbm_gdbm_get_impl(dbmobject *self, PyObject *key, PyObject *default_value);
|
_gdbm_gdbm_get_impl(dbmobject *self, PyObject *key, PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
PyObject *default_value = Py_None;
|
PyObject *default_value = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("get", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "get",
|
if (!_PyArg_UnpackStack(args, nargs, "get",
|
||||||
1, 2,
|
1, 2,
|
||||||
&key, &default_value)) {
|
&key, &default_value)) {
|
||||||
|
@ -50,16 +46,12 @@ _gdbm_gdbm_setdefault_impl(dbmobject *self, PyObject *key,
|
||||||
PyObject *default_value);
|
PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
PyObject *default_value = Py_None;
|
PyObject *default_value = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
|
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
|
||||||
1, 2,
|
1, 2,
|
||||||
&key, &default_value)) {
|
&key, &default_value)) {
|
||||||
|
@ -245,17 +237,13 @@ static PyObject *
|
||||||
dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode);
|
dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *flags = "r";
|
const char *flags = "r";
|
||||||
int mode = 438;
|
int mode = 438;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("open", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
|
if (!_PyArg_ParseStack(args, nargs, "s|si:open",
|
||||||
&name, &flags, &mode)) {
|
&name, &flags, &mode)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -265,4 +253,4 @@ dbmopen(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=94c5713a85dab560 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=9c72502b30bb7485 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -12,7 +12,7 @@ PyDoc_STRVAR(_hashlib_scrypt__doc__,
|
||||||
"scrypt password-based key derivation function.");
|
"scrypt password-based key derivation function.");
|
||||||
|
|
||||||
#define _HASHLIB_SCRYPT_METHODDEF \
|
#define _HASHLIB_SCRYPT_METHODDEF \
|
||||||
{"scrypt", (PyCFunction)_hashlib_scrypt, METH_FASTCALL, _hashlib_scrypt__doc__},
|
{"scrypt", (PyCFunction)_hashlib_scrypt, METH_FASTCALL|METH_KEYWORDS, _hashlib_scrypt__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt,
|
_hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt,
|
||||||
|
@ -57,4 +57,4 @@ exit:
|
||||||
#ifndef _HASHLIB_SCRYPT_METHODDEF
|
#ifndef _HASHLIB_SCRYPT_METHODDEF
|
||||||
#define _HASHLIB_SCRYPT_METHODDEF
|
#define _HASHLIB_SCRYPT_METHODDEF
|
||||||
#endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */
|
#endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */
|
||||||
/*[clinic end generated code: output=71f1e033efe4ac9a input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=eda2a998d5b29030 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -81,7 +81,7 @@ PyDoc_STRVAR(_lzma_LZMADecompressor_decompress__doc__,
|
||||||
"the unused_data attribute.");
|
"the unused_data attribute.");
|
||||||
|
|
||||||
#define _LZMA_LZMADECOMPRESSOR_DECOMPRESS_METHODDEF \
|
#define _LZMA_LZMADECOMPRESSOR_DECOMPRESS_METHODDEF \
|
||||||
{"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_FASTCALL, _lzma_LZMADecompressor_decompress__doc__},
|
{"decompress", (PyCFunction)_lzma_LZMADecompressor_decompress, METH_FASTCALL|METH_KEYWORDS, _lzma_LZMADecompressor_decompress__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data,
|
_lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data,
|
||||||
|
@ -236,16 +236,12 @@ _lzma__decode_filter_properties_impl(PyObject *module, lzma_vli filter_id,
|
||||||
Py_buffer *encoded_props);
|
Py_buffer *encoded_props);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
lzma_vli filter_id;
|
lzma_vli filter_id;
|
||||||
Py_buffer encoded_props = {NULL, NULL};
|
Py_buffer encoded_props = {NULL, NULL};
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("_decode_filter_properties", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&y*:_decode_filter_properties",
|
if (!_PyArg_ParseStack(args, nargs, "O&y*:_decode_filter_properties",
|
||||||
lzma_vli_converter, &filter_id, &encoded_props)) {
|
lzma_vli_converter, &filter_id, &encoded_props)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -260,4 +256,4 @@ exit:
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=473cf89eb501c28b input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=d4e3802d0dea9af3 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -15,17 +15,13 @@ static int
|
||||||
_opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg);
|
_opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int opcode;
|
int opcode;
|
||||||
PyObject *oparg = Py_None;
|
PyObject *oparg = Py_None;
|
||||||
int _return_value;
|
int _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("stack_effect", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "i|O:stack_effect",
|
if (!_PyArg_ParseStack(args, nargs, "i|O:stack_effect",
|
||||||
&opcode, &oparg)) {
|
&opcode, &oparg)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -39,4 +35,4 @@ _opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObje
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=38f3bf305b3bb601 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=616105b05b55eb45 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -43,16 +43,12 @@ static PyObject *
|
||||||
_operator_add_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_add_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("add", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "add",
|
if (!_PyArg_UnpackStack(args, nargs, "add",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -77,16 +73,12 @@ static PyObject *
|
||||||
_operator_sub_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_sub_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("sub", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "sub",
|
if (!_PyArg_UnpackStack(args, nargs, "sub",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -111,16 +103,12 @@ static PyObject *
|
||||||
_operator_mul_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_mul_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("mul", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "mul",
|
if (!_PyArg_UnpackStack(args, nargs, "mul",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -145,16 +133,12 @@ static PyObject *
|
||||||
_operator_matmul_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_matmul_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("matmul", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "matmul",
|
if (!_PyArg_UnpackStack(args, nargs, "matmul",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -179,16 +163,12 @@ static PyObject *
|
||||||
_operator_floordiv_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_floordiv_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("floordiv", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "floordiv",
|
if (!_PyArg_UnpackStack(args, nargs, "floordiv",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -213,16 +193,12 @@ static PyObject *
|
||||||
_operator_truediv_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_truediv_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("truediv", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "truediv",
|
if (!_PyArg_UnpackStack(args, nargs, "truediv",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -247,16 +223,12 @@ static PyObject *
|
||||||
_operator_mod_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_mod_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("mod", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "mod",
|
if (!_PyArg_UnpackStack(args, nargs, "mod",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -326,16 +298,12 @@ static PyObject *
|
||||||
_operator_lshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_lshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lshift", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "lshift",
|
if (!_PyArg_UnpackStack(args, nargs, "lshift",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -360,16 +328,12 @@ static PyObject *
|
||||||
_operator_rshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_rshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rshift", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "rshift",
|
if (!_PyArg_UnpackStack(args, nargs, "rshift",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -422,16 +386,12 @@ static PyObject *
|
||||||
_operator_and__impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_and__impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("and_", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "and_",
|
if (!_PyArg_UnpackStack(args, nargs, "and_",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -456,16 +416,12 @@ static PyObject *
|
||||||
_operator_xor_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_xor_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("xor", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "xor",
|
if (!_PyArg_UnpackStack(args, nargs, "xor",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -490,16 +446,12 @@ static PyObject *
|
||||||
_operator_or__impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_or__impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("or_", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "or_",
|
if (!_PyArg_UnpackStack(args, nargs, "or_",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -524,16 +476,12 @@ static PyObject *
|
||||||
_operator_iadd_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_iadd_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("iadd", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "iadd",
|
if (!_PyArg_UnpackStack(args, nargs, "iadd",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -558,16 +506,12 @@ static PyObject *
|
||||||
_operator_isub_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_isub_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("isub", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "isub",
|
if (!_PyArg_UnpackStack(args, nargs, "isub",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -592,16 +536,12 @@ static PyObject *
|
||||||
_operator_imul_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_imul_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("imul", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "imul",
|
if (!_PyArg_UnpackStack(args, nargs, "imul",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -626,16 +566,12 @@ static PyObject *
|
||||||
_operator_imatmul_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_imatmul_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("imatmul", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "imatmul",
|
if (!_PyArg_UnpackStack(args, nargs, "imatmul",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -660,16 +596,12 @@ static PyObject *
|
||||||
_operator_ifloordiv_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ifloordiv_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ifloordiv", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ifloordiv",
|
if (!_PyArg_UnpackStack(args, nargs, "ifloordiv",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -694,16 +626,12 @@ static PyObject *
|
||||||
_operator_itruediv_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_itruediv_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("itruediv", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "itruediv",
|
if (!_PyArg_UnpackStack(args, nargs, "itruediv",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -728,16 +656,12 @@ static PyObject *
|
||||||
_operator_imod_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_imod_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("imod", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "imod",
|
if (!_PyArg_UnpackStack(args, nargs, "imod",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -762,16 +686,12 @@ static PyObject *
|
||||||
_operator_ilshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ilshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ilshift", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ilshift",
|
if (!_PyArg_UnpackStack(args, nargs, "ilshift",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -796,16 +716,12 @@ static PyObject *
|
||||||
_operator_irshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_irshift_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("irshift", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "irshift",
|
if (!_PyArg_UnpackStack(args, nargs, "irshift",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -830,16 +746,12 @@ static PyObject *
|
||||||
_operator_iand_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_iand_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("iand", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "iand",
|
if (!_PyArg_UnpackStack(args, nargs, "iand",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -864,16 +776,12 @@ static PyObject *
|
||||||
_operator_ixor_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ixor_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ixor", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ixor",
|
if (!_PyArg_UnpackStack(args, nargs, "ixor",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -898,16 +806,12 @@ static PyObject *
|
||||||
_operator_ior_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ior_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ior", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ior",
|
if (!_PyArg_UnpackStack(args, nargs, "ior",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -932,16 +836,12 @@ static PyObject *
|
||||||
_operator_concat_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_concat_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("concat", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "concat",
|
if (!_PyArg_UnpackStack(args, nargs, "concat",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -966,16 +866,12 @@ static PyObject *
|
||||||
_operator_iconcat_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_iconcat_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("iconcat", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "iconcat",
|
if (!_PyArg_UnpackStack(args, nargs, "iconcat",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1000,17 +896,13 @@ static int
|
||||||
_operator_contains_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_contains_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
int _return_value;
|
int _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("contains", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "contains",
|
if (!_PyArg_UnpackStack(args, nargs, "contains",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1039,17 +931,13 @@ static Py_ssize_t
|
||||||
_operator_indexOf_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_indexOf_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
Py_ssize_t _return_value;
|
Py_ssize_t _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("indexOf", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "indexOf",
|
if (!_PyArg_UnpackStack(args, nargs, "indexOf",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1078,17 +966,13 @@ static Py_ssize_t
|
||||||
_operator_countOf_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_countOf_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
Py_ssize_t _return_value;
|
Py_ssize_t _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("countOf", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "countOf",
|
if (!_PyArg_UnpackStack(args, nargs, "countOf",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1117,16 +1001,12 @@ static PyObject *
|
||||||
_operator_getitem_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_getitem_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("getitem", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "getitem",
|
if (!_PyArg_UnpackStack(args, nargs, "getitem",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1152,17 +1032,13 @@ _operator_setitem_impl(PyObject *module, PyObject *a, PyObject *b,
|
||||||
PyObject *c);
|
PyObject *c);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
PyObject *c;
|
PyObject *c;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setitem", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "setitem",
|
if (!_PyArg_UnpackStack(args, nargs, "setitem",
|
||||||
3, 3,
|
3, 3,
|
||||||
&a, &b, &c)) {
|
&a, &b, &c)) {
|
||||||
|
@ -1187,16 +1063,12 @@ static PyObject *
|
||||||
_operator_delitem_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_delitem_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("delitem", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "delitem",
|
if (!_PyArg_UnpackStack(args, nargs, "delitem",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1221,16 +1093,12 @@ static PyObject *
|
||||||
_operator_eq_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_eq_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("eq", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "eq",
|
if (!_PyArg_UnpackStack(args, nargs, "eq",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1255,16 +1123,12 @@ static PyObject *
|
||||||
_operator_ne_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ne_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ne", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ne",
|
if (!_PyArg_UnpackStack(args, nargs, "ne",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1289,16 +1153,12 @@ static PyObject *
|
||||||
_operator_lt_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_lt_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lt", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "lt",
|
if (!_PyArg_UnpackStack(args, nargs, "lt",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1323,16 +1183,12 @@ static PyObject *
|
||||||
_operator_le_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_le_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("le", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "le",
|
if (!_PyArg_UnpackStack(args, nargs, "le",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1357,16 +1213,12 @@ static PyObject *
|
||||||
_operator_gt_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_gt_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("gt", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "gt",
|
if (!_PyArg_UnpackStack(args, nargs, "gt",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1391,16 +1243,12 @@ static PyObject *
|
||||||
_operator_ge_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ge_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ge", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ge",
|
if (!_PyArg_UnpackStack(args, nargs, "ge",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1425,16 +1273,12 @@ static PyObject *
|
||||||
_operator_pow_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_pow_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pow", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "pow",
|
if (!_PyArg_UnpackStack(args, nargs, "pow",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1459,16 +1303,12 @@ static PyObject *
|
||||||
_operator_ipow_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_ipow_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ipow", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "ipow",
|
if (!_PyArg_UnpackStack(args, nargs, "ipow",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1502,16 +1342,12 @@ static PyObject *
|
||||||
_operator_is__impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_is__impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("is_", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "is_",
|
if (!_PyArg_UnpackStack(args, nargs, "is_",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1536,16 +1372,12 @@ static PyObject *
|
||||||
_operator_is_not_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator_is_not_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("is_not", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "is_not",
|
if (!_PyArg_UnpackStack(args, nargs, "is_not",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1577,17 +1409,13 @@ _operator_length_hint_impl(PyObject *module, PyObject *obj,
|
||||||
Py_ssize_t default_value);
|
Py_ssize_t default_value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
Py_ssize_t default_value = 0;
|
Py_ssize_t default_value = 0;
|
||||||
Py_ssize_t _return_value;
|
Py_ssize_t _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("length_hint", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|n:length_hint",
|
if (!_PyArg_ParseStack(args, nargs, "O|n:length_hint",
|
||||||
&obj, &default_value)) {
|
&obj, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1625,16 +1453,12 @@ static PyObject *
|
||||||
_operator__compare_digest_impl(PyObject *module, PyObject *a, PyObject *b);
|
_operator__compare_digest_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("_compare_digest", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "_compare_digest",
|
if (!_PyArg_UnpackStack(args, nargs, "_compare_digest",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -1645,4 +1469,4 @@ _operator__compare_digest(PyObject *module, PyObject **args, Py_ssize_t nargs, P
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=fa8d3eeea396bbec input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=7c42956af269cb21 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -207,16 +207,12 @@ _pickle_Unpickler_find_class_impl(UnpicklerObject *self,
|
||||||
PyObject *global_name);
|
PyObject *global_name);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *module_name;
|
PyObject *module_name;
|
||||||
PyObject *global_name;
|
PyObject *global_name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("find_class", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "find_class",
|
if (!_PyArg_UnpackStack(args, nargs, "find_class",
|
||||||
2, 2,
|
2, 2,
|
||||||
&module_name, &global_name)) {
|
&module_name, &global_name)) {
|
||||||
|
@ -388,7 +384,7 @@ PyDoc_STRVAR(_pickle_dump__doc__,
|
||||||
"2, so that the pickle data stream is readable with Python 2.");
|
"2, so that the pickle data stream is readable with Python 2.");
|
||||||
|
|
||||||
#define _PICKLE_DUMP_METHODDEF \
|
#define _PICKLE_DUMP_METHODDEF \
|
||||||
{"dump", (PyCFunction)_pickle_dump, METH_FASTCALL, _pickle_dump__doc__},
|
{"dump", (PyCFunction)_pickle_dump, METH_FASTCALL|METH_KEYWORDS, _pickle_dump__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file,
|
_pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file,
|
||||||
|
@ -434,7 +430,7 @@ PyDoc_STRVAR(_pickle_dumps__doc__,
|
||||||
"Python 2, so that the pickle data stream is readable with Python 2.");
|
"Python 2, so that the pickle data stream is readable with Python 2.");
|
||||||
|
|
||||||
#define _PICKLE_DUMPS_METHODDEF \
|
#define _PICKLE_DUMPS_METHODDEF \
|
||||||
{"dumps", (PyCFunction)_pickle_dumps, METH_FASTCALL, _pickle_dumps__doc__},
|
{"dumps", (PyCFunction)_pickle_dumps, METH_FASTCALL|METH_KEYWORDS, _pickle_dumps__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol,
|
_pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol,
|
||||||
|
@ -490,7 +486,7 @@ PyDoc_STRVAR(_pickle_load__doc__,
|
||||||
"string instances as bytes objects.");
|
"string instances as bytes objects.");
|
||||||
|
|
||||||
#define _PICKLE_LOAD_METHODDEF \
|
#define _PICKLE_LOAD_METHODDEF \
|
||||||
{"load", (PyCFunction)_pickle_load, METH_FASTCALL, _pickle_load__doc__},
|
{"load", (PyCFunction)_pickle_load, METH_FASTCALL|METH_KEYWORDS, _pickle_load__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_pickle_load_impl(PyObject *module, PyObject *file, int fix_imports,
|
_pickle_load_impl(PyObject *module, PyObject *file, int fix_imports,
|
||||||
|
@ -538,7 +534,7 @@ PyDoc_STRVAR(_pickle_loads__doc__,
|
||||||
"string instances as bytes objects.");
|
"string instances as bytes objects.");
|
||||||
|
|
||||||
#define _PICKLE_LOADS_METHODDEF \
|
#define _PICKLE_LOADS_METHODDEF \
|
||||||
{"loads", (PyCFunction)_pickle_loads, METH_FASTCALL, _pickle_loads__doc__},
|
{"loads", (PyCFunction)_pickle_loads, METH_FASTCALL|METH_KEYWORDS, _pickle_loads__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports,
|
_pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports,
|
||||||
|
@ -564,4 +560,4 @@ _pickle_loads(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=639dd0eb8de16c3c input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=a6243aaa6ea98732 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -160,7 +160,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_match__doc__,
|
||||||
"Matches zero or more characters at the beginning of the string.");
|
"Matches zero or more characters at the beginning of the string.");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_MATCH_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_match_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_match_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -193,7 +193,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_fullmatch__doc__,
|
||||||
"Matches against all of the string");
|
"Matches against all of the string");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_FULLMATCH_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_fullmatch_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_fullmatch_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -228,7 +228,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_search__doc__,
|
||||||
"Return None if no position in the string matches.");
|
"Return None if no position in the string matches.");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_SEARCH_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_search_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_search_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -261,7 +261,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_findall__doc__,
|
||||||
"Return a list of all non-overlapping matches of pattern in string.");
|
"Return a list of all non-overlapping matches of pattern in string.");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_FINDALL_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_findall_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_findall_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -296,7 +296,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_finditer__doc__,
|
||||||
"For each match, the iterator returns a match object.");
|
"For each match, the iterator returns a match object.");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_FINDITER_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_finditer_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_finditer_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -328,7 +328,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_scanner__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_SCANNER_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_scanner_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_scanner_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -361,7 +361,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern_split__doc__,
|
||||||
"Split string by the occurrences of pattern.");
|
"Split string by the occurrences of pattern.");
|
||||||
|
|
||||||
#define _SRE_SRE_PATTERN_SPLIT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_split_impl(PatternObject *self, PyObject *string,
|
_sre_SRE_Pattern_split_impl(PatternObject *self, PyObject *string,
|
||||||
|
@ -393,7 +393,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.");
|
"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 \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_sub_impl(PatternObject *self, PyObject *repl,
|
_sre_SRE_Pattern_sub_impl(PatternObject *self, PyObject *repl,
|
||||||
|
@ -426,7 +426,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.");
|
"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 \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Pattern_subn_impl(PatternObject *self, PyObject *repl,
|
_sre_SRE_Pattern_subn_impl(PatternObject *self, PyObject *repl,
|
||||||
|
@ -484,7 +484,7 @@ PyDoc_STRVAR(_sre_compile__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _SRE_COMPILE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_compile_impl(PyObject *module, PyObject *pattern, int flags,
|
_sre_compile_impl(PyObject *module, PyObject *pattern, int flags,
|
||||||
|
@ -521,7 +521,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.");
|
"Return the string obtained by doing backslash substitution on the string template, as done by the sub() method.");
|
||||||
|
|
||||||
#define _SRE_SRE_MATCH_EXPAND_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Match_expand_impl(MatchObject *self, PyObject *template);
|
_sre_SRE_Match_expand_impl(MatchObject *self, PyObject *template);
|
||||||
|
@ -554,7 +554,7 @@ PyDoc_STRVAR(_sre_SRE_Match_groups__doc__,
|
||||||
" Is used for groups that did not participate in the match.");
|
" Is used for groups that did not participate in the match.");
|
||||||
|
|
||||||
#define _SRE_SRE_MATCH_GROUPS_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Match_groups_impl(MatchObject *self, PyObject *default_value);
|
_sre_SRE_Match_groups_impl(MatchObject *self, PyObject *default_value);
|
||||||
|
@ -587,7 +587,7 @@ PyDoc_STRVAR(_sre_SRE_Match_groupdict__doc__,
|
||||||
" Is used for groups that did not participate in the match.");
|
" Is used for groups that did not participate in the match.");
|
||||||
|
|
||||||
#define _SRE_SRE_MATCH_GROUPDICT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_sre_SRE_Match_groupdict_impl(MatchObject *self, PyObject *default_value);
|
_sre_SRE_Match_groupdict_impl(MatchObject *self, PyObject *default_value);
|
||||||
|
@ -623,16 +623,12 @@ static Py_ssize_t
|
||||||
_sre_SRE_Match_start_impl(MatchObject *self, PyObject *group);
|
_sre_SRE_Match_start_impl(MatchObject *self, PyObject *group);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *group = NULL;
|
PyObject *group = NULL;
|
||||||
Py_ssize_t _return_value;
|
Py_ssize_t _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("start", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "start",
|
if (!_PyArg_UnpackStack(args, nargs, "start",
|
||||||
0, 1,
|
0, 1,
|
||||||
&group)) {
|
&group)) {
|
||||||
|
@ -661,16 +657,12 @@ static Py_ssize_t
|
||||||
_sre_SRE_Match_end_impl(MatchObject *self, PyObject *group);
|
_sre_SRE_Match_end_impl(MatchObject *self, PyObject *group);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *group = NULL;
|
PyObject *group = NULL;
|
||||||
Py_ssize_t _return_value;
|
Py_ssize_t _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("end", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "end",
|
if (!_PyArg_UnpackStack(args, nargs, "end",
|
||||||
0, 1,
|
0, 1,
|
||||||
&group)) {
|
&group)) {
|
||||||
|
@ -699,15 +691,11 @@ static PyObject *
|
||||||
_sre_SRE_Match_span_impl(MatchObject *self, PyObject *group);
|
_sre_SRE_Match_span_impl(MatchObject *self, PyObject *group);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *group = NULL;
|
PyObject *group = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("span", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "span",
|
if (!_PyArg_UnpackStack(args, nargs, "span",
|
||||||
0, 1,
|
0, 1,
|
||||||
&group)) {
|
&group)) {
|
||||||
|
@ -777,4 +765,4 @@ _sre_SRE_Scanner_search(ScannerObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return _sre_SRE_Scanner_search_impl(self);
|
return _sre_SRE_Scanner_search_impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=28b0cc05da4ac219 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=6e3fb17fef1be436 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -66,15 +66,11 @@ static PyObject *
|
||||||
_ssl__SSLSocket_peer_certificate_impl(PySSLSocket *self, int binary_mode);
|
_ssl__SSLSocket_peer_certificate_impl(PySSLSocket *self, int binary_mode);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int binary_mode = 0;
|
int binary_mode = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("peer_certificate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|p:peer_certificate",
|
if (!_PyArg_ParseStack(args, nargs, "|p:peer_certificate",
|
||||||
&binary_mode)) {
|
&binary_mode)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -473,7 +469,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_cert_chain__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _SSL__SSLCONTEXT_LOAD_CERT_CHAIN_METHODDEF \
|
#define _SSL__SSLCONTEXT_LOAD_CERT_CHAIN_METHODDEF \
|
||||||
{"load_cert_chain", (PyCFunction)_ssl__SSLContext_load_cert_chain, METH_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 *
|
static PyObject *
|
||||||
_ssl__SSLContext_load_cert_chain_impl(PySSLContext *self, PyObject *certfile,
|
_ssl__SSLContext_load_cert_chain_impl(PySSLContext *self, PyObject *certfile,
|
||||||
|
@ -505,7 +501,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_verify_locations__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _SSL__SSLCONTEXT_LOAD_VERIFY_LOCATIONS_METHODDEF \
|
#define _SSL__SSLCONTEXT_LOAD_VERIFY_LOCATIONS_METHODDEF \
|
||||||
{"load_verify_locations", (PyCFunction)_ssl__SSLContext_load_verify_locations, METH_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 *
|
static PyObject *
|
||||||
_ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
|
_ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
|
||||||
|
@ -547,7 +543,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_socket__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _SSL__SSLCONTEXT__WRAP_SOCKET_METHODDEF \
|
#define _SSL__SSLCONTEXT__WRAP_SOCKET_METHODDEF \
|
||||||
{"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_FASTCALL, _ssl__SSLContext__wrap_socket__doc__},
|
{"_wrap_socket", (PyCFunction)_ssl__SSLContext__wrap_socket, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext__wrap_socket__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_ssl__SSLContext__wrap_socket_impl(PySSLContext *self, PyObject *sock,
|
_ssl__SSLContext__wrap_socket_impl(PySSLContext *self, PyObject *sock,
|
||||||
|
@ -580,7 +576,7 @@ PyDoc_STRVAR(_ssl__SSLContext__wrap_bio__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _SSL__SSLCONTEXT__WRAP_BIO_METHODDEF \
|
#define _SSL__SSLCONTEXT__WRAP_BIO_METHODDEF \
|
||||||
{"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_FASTCALL, _ssl__SSLContext__wrap_bio__doc__},
|
{"_wrap_bio", (PyCFunction)_ssl__SSLContext__wrap_bio, METH_FASTCALL|METH_KEYWORDS, _ssl__SSLContext__wrap_bio__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming,
|
_ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming,
|
||||||
|
@ -704,7 +700,7 @@ PyDoc_STRVAR(_ssl__SSLContext_get_ca_certs__doc__,
|
||||||
"been used at least once.");
|
"been used at least once.");
|
||||||
|
|
||||||
#define _SSL__SSLCONTEXT_GET_CA_CERTS_METHODDEF \
|
#define _SSL__SSLCONTEXT_GET_CA_CERTS_METHODDEF \
|
||||||
{"get_ca_certs", (PyCFunction)_ssl__SSLContext_get_ca_certs, METH_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 *
|
static PyObject *
|
||||||
_ssl__SSLContext_get_ca_certs_impl(PySSLContext *self, int binary_form);
|
_ssl__SSLContext_get_ca_certs_impl(PySSLContext *self, int binary_form);
|
||||||
|
@ -767,15 +763,11 @@ static PyObject *
|
||||||
_ssl_MemoryBIO_read_impl(PySSLMemoryBIO *self, int len);
|
_ssl_MemoryBIO_read_impl(PySSLMemoryBIO *self, int len);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int len = -1;
|
int len = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("read", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|i:read",
|
if (!_PyArg_ParseStack(args, nargs, "|i:read",
|
||||||
&len)) {
|
&len)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -856,16 +848,12 @@ static PyObject *
|
||||||
_ssl_RAND_add_impl(PyObject *module, Py_buffer *view, double entropy);
|
_ssl_RAND_add_impl(PyObject *module, Py_buffer *view, double entropy);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer view = {NULL, NULL};
|
Py_buffer view = {NULL, NULL};
|
||||||
double entropy;
|
double entropy;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("RAND_add", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "s*d:RAND_add",
|
if (!_PyArg_ParseStack(args, nargs, "s*d:RAND_add",
|
||||||
&view, &entropy)) {
|
&view, &entropy)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1023,7 +1011,7 @@ PyDoc_STRVAR(_ssl_txt2obj__doc__,
|
||||||
"long name are also matched.");
|
"long name are also matched.");
|
||||||
|
|
||||||
#define _SSL_TXT2OBJ_METHODDEF \
|
#define _SSL_TXT2OBJ_METHODDEF \
|
||||||
{"txt2obj", (PyCFunction)_ssl_txt2obj, METH_FASTCALL, _ssl_txt2obj__doc__},
|
{"txt2obj", (PyCFunction)_ssl_txt2obj, METH_FASTCALL|METH_KEYWORDS, _ssl_txt2obj__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_ssl_txt2obj_impl(PyObject *module, const char *txt, int name);
|
_ssl_txt2obj_impl(PyObject *module, const char *txt, int name);
|
||||||
|
@ -1089,7 +1077,7 @@ PyDoc_STRVAR(_ssl_enum_certificates__doc__,
|
||||||
"a set of OIDs or the boolean True.");
|
"a set of OIDs or the boolean True.");
|
||||||
|
|
||||||
#define _SSL_ENUM_CERTIFICATES_METHODDEF \
|
#define _SSL_ENUM_CERTIFICATES_METHODDEF \
|
||||||
{"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_FASTCALL, _ssl_enum_certificates__doc__},
|
{"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_FASTCALL|METH_KEYWORDS, _ssl_enum_certificates__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_ssl_enum_certificates_impl(PyObject *module, const char *store_name);
|
_ssl_enum_certificates_impl(PyObject *module, const char *store_name);
|
||||||
|
@ -1128,7 +1116,7 @@ PyDoc_STRVAR(_ssl_enum_crls__doc__,
|
||||||
"X509_ASN_ENCODING or PKCS_7_ASN_ENCODING.");
|
"X509_ASN_ENCODING or PKCS_7_ASN_ENCODING.");
|
||||||
|
|
||||||
#define _SSL_ENUM_CRLS_METHODDEF \
|
#define _SSL_ENUM_CRLS_METHODDEF \
|
||||||
{"enum_crls", (PyCFunction)_ssl_enum_crls, METH_FASTCALL, _ssl_enum_crls__doc__},
|
{"enum_crls", (PyCFunction)_ssl_enum_crls, METH_FASTCALL|METH_KEYWORDS, _ssl_enum_crls__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_ssl_enum_crls_impl(PyObject *module, const char *store_name);
|
_ssl_enum_crls_impl(PyObject *module, const char *store_name);
|
||||||
|
@ -1180,4 +1168,4 @@ exit:
|
||||||
#ifndef _SSL_ENUM_CRLS_METHODDEF
|
#ifndef _SSL_ENUM_CRLS_METHODDEF
|
||||||
#define _SSL_ENUM_CRLS_METHODDEF
|
#define _SSL_ENUM_CRLS_METHODDEF
|
||||||
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
|
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
|
||||||
/*[clinic end generated code: output=30284eec805dbdf8 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=2d1424e6cc647fa8 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -84,7 +84,7 @@ PyDoc_STRVAR(Struct_unpack_from__doc__,
|
||||||
"See help(struct) for more on format strings.");
|
"See help(struct) for more on format strings.");
|
||||||
|
|
||||||
#define STRUCT_UNPACK_FROM_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
Struct_unpack_from_impl(PyStructObject *self, Py_buffer *buffer,
|
Struct_unpack_from_impl(PyStructObject *self, Py_buffer *buffer,
|
||||||
|
@ -198,16 +198,12 @@ static PyObject *
|
||||||
unpack_impl(PyObject *module, PyStructObject *s_object, Py_buffer *buffer);
|
unpack_impl(PyObject *module, PyStructObject *s_object, Py_buffer *buffer);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
PyStructObject *s_object = NULL;
|
PyStructObject *s_object = NULL;
|
||||||
Py_buffer buffer = {NULL, NULL};
|
Py_buffer buffer = {NULL, NULL};
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("unpack", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&y*:unpack",
|
if (!_PyArg_ParseStack(args, nargs, "O&y*:unpack",
|
||||||
cache_struct_converter, &s_object, &buffer)) {
|
cache_struct_converter, &s_object, &buffer)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -236,7 +232,7 @@ PyDoc_STRVAR(unpack_from__doc__,
|
||||||
"See help(struct) for more on format strings.");
|
"See help(struct) for more on format strings.");
|
||||||
|
|
||||||
#define UNPACK_FROM_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
unpack_from_impl(PyObject *module, PyStructObject *s_object,
|
unpack_from_impl(PyObject *module, PyStructObject *s_object,
|
||||||
|
@ -288,16 +284,12 @@ iter_unpack_impl(PyObject *module, PyStructObject *s_object,
|
||||||
PyObject *buffer);
|
PyObject *buffer);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
PyStructObject *s_object = NULL;
|
PyStructObject *s_object = NULL;
|
||||||
PyObject *buffer;
|
PyObject *buffer;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("iter_unpack", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&O:iter_unpack",
|
if (!_PyArg_ParseStack(args, nargs, "O&O:iter_unpack",
|
||||||
cache_struct_converter, &s_object, &buffer)) {
|
cache_struct_converter, &s_object, &buffer)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -310,4 +302,4 @@ exit:
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=351350320f31ca82 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=fce060787b4c5261 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -263,16 +263,12 @@ _tkinter_tkapp_createcommand_impl(TkappObject *self, const char *name,
|
||||||
PyObject *func);
|
PyObject *func);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *name;
|
const char *name;
|
||||||
PyObject *func;
|
PyObject *func;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("createcommand", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "sO:createcommand",
|
if (!_PyArg_ParseStack(args, nargs, "sO:createcommand",
|
||||||
&name, &func)) {
|
&name, &func)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -324,17 +320,13 @@ _tkinter_tkapp_createfilehandler_impl(TkappObject *self, PyObject *file,
|
||||||
int mask, PyObject *func);
|
int mask, PyObject *func);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *file;
|
PyObject *file;
|
||||||
int mask;
|
int mask;
|
||||||
PyObject *func;
|
PyObject *func;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("createfilehandler", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "OiO:createfilehandler",
|
if (!_PyArg_ParseStack(args, nargs, "OiO:createfilehandler",
|
||||||
&file, &mask, &func)) {
|
&file, &mask, &func)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -389,16 +381,12 @@ _tkinter_tkapp_createtimerhandler_impl(TkappObject *self, int milliseconds,
|
||||||
PyObject *func);
|
PyObject *func);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int milliseconds;
|
int milliseconds;
|
||||||
PyObject *func;
|
PyObject *func;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("createtimerhandler", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iO:createtimerhandler",
|
if (!_PyArg_ParseStack(args, nargs, "iO:createtimerhandler",
|
||||||
&milliseconds, &func)) {
|
&milliseconds, &func)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -421,15 +409,11 @@ static PyObject *
|
||||||
_tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold);
|
_tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int threshold = 0;
|
int threshold = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("mainloop", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|i:mainloop",
|
if (!_PyArg_ParseStack(args, nargs, "|i:mainloop",
|
||||||
&threshold)) {
|
&threshold)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -452,15 +436,11 @@ static PyObject *
|
||||||
_tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags);
|
_tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("dooneevent", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|i:dooneevent",
|
if (!_PyArg_ParseStack(args, nargs, "|i:dooneevent",
|
||||||
&flags)) {
|
&flags)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -572,7 +552,7 @@ _tkinter_create_impl(PyObject *module, const char *screenName,
|
||||||
const char *use);
|
const char *use);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *screenName = NULL;
|
const char *screenName = NULL;
|
||||||
|
@ -584,10 +564,6 @@ _tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *k
|
||||||
int sync = 0;
|
int sync = 0;
|
||||||
const char *use = NULL;
|
const char *use = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("create", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|zssiiiiz:create",
|
if (!_PyArg_ParseStack(args, nargs, "|zssiiiiz:create",
|
||||||
&screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) {
|
&screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -662,4 +638,4 @@ exit:
|
||||||
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
||||||
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
||||||
#endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
|
#endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
|
||||||
/*[clinic end generated code: output=ed14e0bb0cd9c8e0 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=3b9241f7c703ae4f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -90,15 +90,11 @@ static PyObject *
|
||||||
_tracemalloc_start_impl(PyObject *module, Py_ssize_t nframe);
|
_tracemalloc_start_impl(PyObject *module, Py_ssize_t nframe);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t nframe = 1;
|
Py_ssize_t nframe = 1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("start", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:start",
|
if (!_PyArg_ParseStack(args, nargs, "|n:start",
|
||||||
&nframe)) {
|
&nframe)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -189,4 +185,4 @@ _tracemalloc_get_traced_memory(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return _tracemalloc_get_traced_memory_impl(module);
|
return _tracemalloc_get_traced_memory_impl(module);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=ca7b197d1bdcdf27 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=c9a0111391b3ec45 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -44,16 +44,12 @@ _weakref__remove_dead_weakref_impl(PyObject *module, PyObject *dct,
|
||||||
PyObject *key);
|
PyObject *key);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *dct;
|
PyObject *dct;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("_remove_dead_weakref", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O!O:_remove_dead_weakref",
|
if (!_PyArg_ParseStack(args, nargs, "O!O:_remove_dead_weakref",
|
||||||
&PyDict_Type, &dct, &key)) {
|
&PyDict_Type, &dct, &key)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -63,4 +59,4 @@ _weakref__remove_dead_weakref(PyObject *module, PyObject **args, Py_ssize_t narg
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=05ecbb46c85839a2 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=87ddb70850080222 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -95,7 +95,7 @@ PyDoc_STRVAR(_winapi_ConnectNamedPipe__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _WINAPI_CONNECTNAMEDPIPE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle,
|
_winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle,
|
||||||
|
@ -138,7 +138,7 @@ _winapi_CreateFile_impl(PyObject *module, LPCTSTR file_name,
|
||||||
DWORD flags_and_attributes, HANDLE template_file);
|
DWORD flags_and_attributes, HANDLE template_file);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
LPCTSTR file_name;
|
LPCTSTR file_name;
|
||||||
|
@ -150,10 +150,6 @@ _winapi_CreateFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
HANDLE template_file;
|
HANDLE template_file;
|
||||||
HANDLE _return_value;
|
HANDLE _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CreateFile", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "skk" F_POINTER "kk" F_HANDLE ":CreateFile",
|
if (!_PyArg_ParseStack(args, nargs, "skk" F_POINTER "kk" F_HANDLE ":CreateFile",
|
||||||
&file_name, &desired_access, &share_mode, &security_attributes, &creation_disposition, &flags_and_attributes, &template_file)) {
|
&file_name, &desired_access, &share_mode, &security_attributes, &creation_disposition, &flags_and_attributes, &template_file)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -184,16 +180,12 @@ _winapi_CreateJunction_impl(PyObject *module, LPWSTR src_path,
|
||||||
LPWSTR dst_path);
|
LPWSTR dst_path);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
LPWSTR src_path;
|
LPWSTR src_path;
|
||||||
LPWSTR dst_path;
|
LPWSTR dst_path;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CreateJunction", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "uu:CreateJunction",
|
if (!_PyArg_ParseStack(args, nargs, "uu:CreateJunction",
|
||||||
&src_path, &dst_path)) {
|
&src_path, &dst_path)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -222,7 +214,7 @@ _winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD open_mode,
|
||||||
LPSECURITY_ATTRIBUTES security_attributes);
|
LPSECURITY_ATTRIBUTES security_attributes);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
LPCTSTR name;
|
LPCTSTR name;
|
||||||
|
@ -235,10 +227,6 @@ _winapi_CreateNamedPipe(PyObject *module, PyObject **args, Py_ssize_t nargs, PyO
|
||||||
LPSECURITY_ATTRIBUTES security_attributes;
|
LPSECURITY_ATTRIBUTES security_attributes;
|
||||||
HANDLE _return_value;
|
HANDLE _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CreateNamedPipe", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "skkkkkk" F_POINTER ":CreateNamedPipe",
|
if (!_PyArg_ParseStack(args, nargs, "skkkkkk" F_POINTER ":CreateNamedPipe",
|
||||||
&name, &open_mode, &pipe_mode, &max_instances, &out_buffer_size, &in_buffer_size, &default_timeout, &security_attributes)) {
|
&name, &open_mode, &pipe_mode, &max_instances, &out_buffer_size, &in_buffer_size, &default_timeout, &security_attributes)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -274,16 +262,12 @@ static PyObject *
|
||||||
_winapi_CreatePipe_impl(PyObject *module, PyObject *pipe_attrs, DWORD size);
|
_winapi_CreatePipe_impl(PyObject *module, PyObject *pipe_attrs, DWORD size);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *pipe_attrs;
|
PyObject *pipe_attrs;
|
||||||
DWORD size;
|
DWORD size;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CreatePipe", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "Ok:CreatePipe",
|
if (!_PyArg_ParseStack(args, nargs, "Ok:CreatePipe",
|
||||||
&pipe_attrs, &size)) {
|
&pipe_attrs, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -322,7 +306,7 @@ _winapi_CreateProcess_impl(PyObject *module, Py_UNICODE *application_name,
|
||||||
PyObject *startup_info);
|
PyObject *startup_info);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_UNICODE *application_name;
|
Py_UNICODE *application_name;
|
||||||
|
@ -335,10 +319,6 @@ _winapi_CreateProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObj
|
||||||
Py_UNICODE *current_directory;
|
Py_UNICODE *current_directory;
|
||||||
PyObject *startup_info;
|
PyObject *startup_info;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CreateProcess", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ZZOOikOZO:CreateProcess",
|
if (!_PyArg_ParseStack(args, nargs, "ZZOOikOZO:CreateProcess",
|
||||||
&application_name, &command_line, &proc_attrs, &thread_attrs, &inherit_handles, &creation_flags, &env_mapping, ¤t_directory, &startup_info)) {
|
&application_name, &command_line, &proc_attrs, &thread_attrs, &inherit_handles, &creation_flags, &env_mapping, ¤t_directory, &startup_info)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -372,7 +352,7 @@ _winapi_DuplicateHandle_impl(PyObject *module, HANDLE source_process_handle,
|
||||||
DWORD options);
|
DWORD options);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HANDLE source_process_handle;
|
HANDLE source_process_handle;
|
||||||
|
@ -383,10 +363,6 @@ _winapi_DuplicateHandle(PyObject *module, PyObject **args, Py_ssize_t nargs, PyO
|
||||||
DWORD options = 0;
|
DWORD options = 0;
|
||||||
HANDLE _return_value;
|
HANDLE _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("DuplicateHandle", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "" F_HANDLE "" F_HANDLE "ki|k:DuplicateHandle",
|
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "" F_HANDLE "" F_HANDLE "ki|k:DuplicateHandle",
|
||||||
&source_process_handle, &source_handle, &target_process_handle, &desired_access, &inherit_handle, &options)) {
|
&source_process_handle, &source_handle, &target_process_handle, &desired_access, &inherit_handle, &options)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -635,7 +611,7 @@ _winapi_OpenProcess_impl(PyObject *module, DWORD desired_access,
|
||||||
BOOL inherit_handle, DWORD process_id);
|
BOOL inherit_handle, DWORD process_id);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
DWORD desired_access;
|
DWORD desired_access;
|
||||||
|
@ -643,10 +619,6 @@ _winapi_OpenProcess(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObjec
|
||||||
DWORD process_id;
|
DWORD process_id;
|
||||||
HANDLE _return_value;
|
HANDLE _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("OpenProcess", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "kik:OpenProcess",
|
if (!_PyArg_ParseStack(args, nargs, "kik:OpenProcess",
|
||||||
&desired_access, &inherit_handle, &process_id)) {
|
&desired_access, &inherit_handle, &process_id)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -676,16 +648,12 @@ static PyObject *
|
||||||
_winapi_PeekNamedPipe_impl(PyObject *module, HANDLE handle, int size);
|
_winapi_PeekNamedPipe_impl(PyObject *module, HANDLE handle, int size);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
int size = 0;
|
int size = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("PeekNamedPipe", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "|i:PeekNamedPipe",
|
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "|i:PeekNamedPipe",
|
||||||
&handle, &size)) {
|
&handle, &size)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -702,7 +670,7 @@ PyDoc_STRVAR(_winapi_ReadFile__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _WINAPI_READFILE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size,
|
_winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size,
|
||||||
|
@ -744,7 +712,7 @@ _winapi_SetNamedPipeHandleState_impl(PyObject *module, HANDLE named_pipe,
|
||||||
PyObject *collect_data_timeout);
|
PyObject *collect_data_timeout);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HANDLE named_pipe;
|
HANDLE named_pipe;
|
||||||
|
@ -752,10 +720,6 @@ _winapi_SetNamedPipeHandleState(PyObject *module, PyObject **args, Py_ssize_t na
|
||||||
PyObject *max_collection_count;
|
PyObject *max_collection_count;
|
||||||
PyObject *collect_data_timeout;
|
PyObject *collect_data_timeout;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("SetNamedPipeHandleState", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "OOO:SetNamedPipeHandleState",
|
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "OOO:SetNamedPipeHandleState",
|
||||||
&named_pipe, &mode, &max_collection_count, &collect_data_timeout)) {
|
&named_pipe, &mode, &max_collection_count, &collect_data_timeout)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -780,16 +744,12 @@ _winapi_TerminateProcess_impl(PyObject *module, HANDLE handle,
|
||||||
UINT exit_code);
|
UINT exit_code);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
UINT exit_code;
|
UINT exit_code;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("TerminateProcess", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "I:TerminateProcess",
|
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "I:TerminateProcess",
|
||||||
&handle, &exit_code)) {
|
&handle, &exit_code)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -812,16 +772,12 @@ static PyObject *
|
||||||
_winapi_WaitNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD timeout);
|
_winapi_WaitNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD timeout);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
LPCTSTR name;
|
LPCTSTR name;
|
||||||
DWORD timeout;
|
DWORD timeout;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("WaitNamedPipe", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "sk:WaitNamedPipe",
|
if (!_PyArg_ParseStack(args, nargs, "sk:WaitNamedPipe",
|
||||||
&name, &timeout)) {
|
&name, &timeout)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -846,17 +802,13 @@ _winapi_WaitForMultipleObjects_impl(PyObject *module, PyObject *handle_seq,
|
||||||
BOOL wait_flag, DWORD milliseconds);
|
BOOL wait_flag, DWORD milliseconds);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *handle_seq;
|
PyObject *handle_seq;
|
||||||
BOOL wait_flag;
|
BOOL wait_flag;
|
||||||
DWORD milliseconds = INFINITE;
|
DWORD milliseconds = INFINITE;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("WaitForMultipleObjects", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "Oi|k:WaitForMultipleObjects",
|
if (!_PyArg_ParseStack(args, nargs, "Oi|k:WaitForMultipleObjects",
|
||||||
&handle_seq, &wait_flag, &milliseconds)) {
|
&handle_seq, &wait_flag, &milliseconds)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -885,17 +837,13 @@ _winapi_WaitForSingleObject_impl(PyObject *module, HANDLE handle,
|
||||||
DWORD milliseconds);
|
DWORD milliseconds);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
DWORD milliseconds;
|
DWORD milliseconds;
|
||||||
long _return_value;
|
long _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("WaitForSingleObject", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "k:WaitForSingleObject",
|
if (!_PyArg_ParseStack(args, nargs, "" F_HANDLE "k:WaitForSingleObject",
|
||||||
&handle, &milliseconds)) {
|
&handle, &milliseconds)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -916,7 +864,7 @@ PyDoc_STRVAR(_winapi_WriteFile__doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define _WINAPI_WRITEFILE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer,
|
_winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer,
|
||||||
|
@ -941,4 +889,4 @@ _winapi_WriteFile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=9555c16ed2d95a9f input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=afa6bd61eb0f18d2 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -71,15 +71,11 @@ static PyObject *
|
||||||
array_array_pop_impl(arrayobject *self, Py_ssize_t i);
|
array_array_pop_impl(arrayobject *self, Py_ssize_t i);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t i = -1;
|
Py_ssize_t i = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
|
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
|
||||||
&i)) {
|
&i)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -112,16 +108,12 @@ static PyObject *
|
||||||
array_array_insert_impl(arrayobject *self, Py_ssize_t i, PyObject *v);
|
array_array_insert_impl(arrayobject *self, Py_ssize_t i, PyObject *v);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t i;
|
Py_ssize_t i;
|
||||||
PyObject *v;
|
PyObject *v;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
|
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
|
||||||
&i, &v)) {
|
&i, &v)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -214,16 +206,12 @@ static PyObject *
|
||||||
array_array_fromfile_impl(arrayobject *self, PyObject *f, Py_ssize_t n);
|
array_array_fromfile_impl(arrayobject *self, PyObject *f, Py_ssize_t n);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *f;
|
PyObject *f;
|
||||||
Py_ssize_t n;
|
Py_ssize_t n;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("fromfile", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "On:fromfile",
|
if (!_PyArg_ParseStack(args, nargs, "On:fromfile",
|
||||||
&f, &n)) {
|
&f, &n)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -464,7 +452,7 @@ array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
|
||||||
PyObject *items);
|
PyObject *items);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
PyTypeObject *arraytype;
|
PyTypeObject *arraytype;
|
||||||
|
@ -472,10 +460,6 @@ array__array_reconstructor(PyObject *module, PyObject **args, Py_ssize_t nargs,
|
||||||
enum machine_format_code mformat_code;
|
enum machine_format_code mformat_code;
|
||||||
PyObject *items;
|
PyObject *items;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("_array_reconstructor", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "OCiO:_array_reconstructor",
|
if (!_PyArg_ParseStack(args, nargs, "OCiO:_array_reconstructor",
|
||||||
&arraytype, &typecode, &mformat_code, &items)) {
|
&arraytype, &typecode, &mformat_code, &items)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -521,4 +505,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__,
|
||||||
|
|
||||||
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
|
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
|
||||||
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
|
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
|
||||||
/*[clinic end generated code: output=fb4a67e697d7c0b0 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=c7dfe61312b236a9 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -16,17 +16,13 @@ audioop_getsample_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
Py_ssize_t index);
|
Py_ssize_t index);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
Py_ssize_t index;
|
Py_ssize_t index;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("getsample", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*in:getsample",
|
if (!_PyArg_ParseStack(args, nargs, "y*in:getsample",
|
||||||
&fragment, &width, &index)) {
|
&fragment, &width, &index)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -55,16 +51,12 @@ static PyObject *
|
||||||
audioop_max_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_max_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("max", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:max",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:max",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -93,16 +85,12 @@ static PyObject *
|
||||||
audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("minmax", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:minmax",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:minmax",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -131,16 +119,12 @@ static PyObject *
|
||||||
audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("avg", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:avg",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:avg",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -169,16 +153,12 @@ static PyObject *
|
||||||
audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rms", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:rms",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:rms",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -208,16 +188,12 @@ audioop_findfit_impl(PyObject *module, Py_buffer *fragment,
|
||||||
Py_buffer *reference);
|
Py_buffer *reference);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
Py_buffer reference = {NULL, NULL};
|
Py_buffer reference = {NULL, NULL};
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("findfit", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*:findfit",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*:findfit",
|
||||||
&fragment, &reference)) {
|
&fragment, &reference)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -251,16 +227,12 @@ audioop_findfactor_impl(PyObject *module, Py_buffer *fragment,
|
||||||
Py_buffer *reference);
|
Py_buffer *reference);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
Py_buffer reference = {NULL, NULL};
|
Py_buffer reference = {NULL, NULL};
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("findfactor", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*:findfactor",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*:findfactor",
|
||||||
&fragment, &reference)) {
|
&fragment, &reference)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -294,16 +266,12 @@ audioop_findmax_impl(PyObject *module, Py_buffer *fragment,
|
||||||
Py_ssize_t length);
|
Py_ssize_t length);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
Py_ssize_t length;
|
Py_ssize_t length;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("findmax", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*n:findmax",
|
if (!_PyArg_ParseStack(args, nargs, "y*n:findmax",
|
||||||
&fragment, &length)) {
|
&fragment, &length)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -332,16 +300,12 @@ static PyObject *
|
||||||
audioop_avgpp_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_avgpp_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("avgpp", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:avgpp",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:avgpp",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -370,16 +334,12 @@ static PyObject *
|
||||||
audioop_maxpp_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_maxpp_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("maxpp", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:maxpp",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:maxpp",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -408,16 +368,12 @@ static PyObject *
|
||||||
audioop_cross_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_cross_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("cross", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:cross",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:cross",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -447,17 +403,13 @@ audioop_mul_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
double factor);
|
double factor);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
double factor;
|
double factor;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("mul", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*id:mul",
|
if (!_PyArg_ParseStack(args, nargs, "y*id:mul",
|
||||||
&fragment, &width, &factor)) {
|
&fragment, &width, &factor)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -487,7 +439,7 @@ audioop_tomono_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
double lfactor, double rfactor);
|
double lfactor, double rfactor);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
|
@ -495,10 +447,6 @@ audioop_tomono(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
|
||||||
double lfactor;
|
double lfactor;
|
||||||
double rfactor;
|
double rfactor;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("tomono", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*idd:tomono",
|
if (!_PyArg_ParseStack(args, nargs, "y*idd:tomono",
|
||||||
&fragment, &width, &lfactor, &rfactor)) {
|
&fragment, &width, &lfactor, &rfactor)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -528,7 +476,7 @@ audioop_tostereo_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
double lfactor, double rfactor);
|
double lfactor, double rfactor);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
|
@ -536,10 +484,6 @@ audioop_tostereo(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *
|
||||||
double lfactor;
|
double lfactor;
|
||||||
double rfactor;
|
double rfactor;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("tostereo", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*idd:tostereo",
|
if (!_PyArg_ParseStack(args, nargs, "y*idd:tostereo",
|
||||||
&fragment, &width, &lfactor, &rfactor)) {
|
&fragment, &width, &lfactor, &rfactor)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -569,17 +513,13 @@ audioop_add_impl(PyObject *module, Py_buffer *fragment1,
|
||||||
Py_buffer *fragment2, int width);
|
Py_buffer *fragment2, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment1 = {NULL, NULL};
|
Py_buffer fragment1 = {NULL, NULL};
|
||||||
Py_buffer fragment2 = {NULL, NULL};
|
Py_buffer fragment2 = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("add", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*i:add",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*i:add",
|
||||||
&fragment1, &fragment2, &width)) {
|
&fragment1, &fragment2, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -612,17 +552,13 @@ static PyObject *
|
||||||
audioop_bias_impl(PyObject *module, Py_buffer *fragment, int width, int bias);
|
audioop_bias_impl(PyObject *module, Py_buffer *fragment, int width, int bias);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
int bias;
|
int bias;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("bias", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*ii:bias",
|
if (!_PyArg_ParseStack(args, nargs, "y*ii:bias",
|
||||||
&fragment, &width, &bias)) {
|
&fragment, &width, &bias)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -651,16 +587,12 @@ static PyObject *
|
||||||
audioop_reverse_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_reverse_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("reverse", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:reverse",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:reverse",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -689,16 +621,12 @@ static PyObject *
|
||||||
audioop_byteswap_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_byteswap_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("byteswap", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:byteswap",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:byteswap",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -728,17 +656,13 @@ audioop_lin2lin_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
int newwidth);
|
int newwidth);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
int newwidth;
|
int newwidth;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lin2lin", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*ii:lin2lin",
|
if (!_PyArg_ParseStack(args, nargs, "y*ii:lin2lin",
|
||||||
&fragment, &width, &newwidth)) {
|
&fragment, &width, &newwidth)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -770,7 +694,7 @@ audioop_ratecv_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
int weightA, int weightB);
|
int weightA, int weightB);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
|
@ -782,10 +706,6 @@ audioop_ratecv(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
|
||||||
int weightA = 1;
|
int weightA = 1;
|
||||||
int weightB = 0;
|
int weightB = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ratecv", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*iiiiO|ii:ratecv",
|
if (!_PyArg_ParseStack(args, nargs, "y*iiiiO|ii:ratecv",
|
||||||
&fragment, &width, &nchannels, &inrate, &outrate, &state, &weightA, &weightB)) {
|
&fragment, &width, &nchannels, &inrate, &outrate, &state, &weightA, &weightB)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -814,16 +734,12 @@ static PyObject *
|
||||||
audioop_lin2ulaw_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_lin2ulaw_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lin2ulaw", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:lin2ulaw",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:lin2ulaw",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -852,16 +768,12 @@ static PyObject *
|
||||||
audioop_ulaw2lin_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_ulaw2lin_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ulaw2lin", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:ulaw2lin",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:ulaw2lin",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -890,16 +802,12 @@ static PyObject *
|
||||||
audioop_lin2alaw_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_lin2alaw_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lin2alaw", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:lin2alaw",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:lin2alaw",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -928,16 +836,12 @@ static PyObject *
|
||||||
audioop_alaw2lin_impl(PyObject *module, Py_buffer *fragment, int width);
|
audioop_alaw2lin_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("alaw2lin", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*i:alaw2lin",
|
if (!_PyArg_ParseStack(args, nargs, "y*i:alaw2lin",
|
||||||
&fragment, &width)) {
|
&fragment, &width)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -967,17 +871,13 @@ audioop_lin2adpcm_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
PyObject *state);
|
PyObject *state);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
PyObject *state;
|
PyObject *state;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lin2adpcm", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*iO:lin2adpcm",
|
if (!_PyArg_ParseStack(args, nargs, "y*iO:lin2adpcm",
|
||||||
&fragment, &width, &state)) {
|
&fragment, &width, &state)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1007,17 +907,13 @@ audioop_adpcm2lin_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||||
PyObject *state);
|
PyObject *state);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer fragment = {NULL, NULL};
|
Py_buffer fragment = {NULL, NULL};
|
||||||
int width;
|
int width;
|
||||||
PyObject *state;
|
PyObject *state;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("adpcm2lin", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*iO:adpcm2lin",
|
if (!_PyArg_ParseStack(args, nargs, "y*iO:adpcm2lin",
|
||||||
&fragment, &width, &state)) {
|
&fragment, &width, &state)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1032,4 +928,4 @@ exit:
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=4eaee23043922a41 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=e2076026235d7f0f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -40,7 +40,7 @@ PyDoc_STRVAR(binascii_b2a_uu__doc__,
|
||||||
"Uuencode line of data.");
|
"Uuencode line of data.");
|
||||||
|
|
||||||
#define BINASCII_B2A_UU_METHODDEF \
|
#define BINASCII_B2A_UU_METHODDEF \
|
||||||
{"b2a_uu", (PyCFunction)binascii_b2a_uu, METH_FASTCALL, binascii_b2a_uu__doc__},
|
{"b2a_uu", (PyCFunction)binascii_b2a_uu, METH_FASTCALL|METH_KEYWORDS, binascii_b2a_uu__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
binascii_b2a_uu_impl(PyObject *module, Py_buffer *data, int backtick);
|
binascii_b2a_uu_impl(PyObject *module, Py_buffer *data, int backtick);
|
||||||
|
@ -107,7 +107,7 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__,
|
||||||
"Base64-code line of data.");
|
"Base64-code line of data.");
|
||||||
|
|
||||||
#define BINASCII_B2A_BASE64_METHODDEF \
|
#define BINASCII_B2A_BASE64_METHODDEF \
|
||||||
{"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_FASTCALL, binascii_b2a_base64__doc__},
|
{"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_FASTCALL|METH_KEYWORDS, binascii_b2a_base64__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline);
|
binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline);
|
||||||
|
@ -276,17 +276,13 @@ static unsigned int
|
||||||
binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc);
|
binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
unsigned int crc;
|
unsigned int crc;
|
||||||
unsigned int _return_value;
|
unsigned int _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("crc_hqx", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*I:crc_hqx",
|
if (!_PyArg_ParseStack(args, nargs, "y*I:crc_hqx",
|
||||||
&data, &crc)) {
|
&data, &crc)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -319,17 +315,13 @@ static unsigned int
|
||||||
binascii_crc32_impl(PyObject *module, Py_buffer *data, unsigned int crc);
|
binascii_crc32_impl(PyObject *module, Py_buffer *data, unsigned int crc);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
unsigned int crc = 0;
|
unsigned int crc = 0;
|
||||||
unsigned int _return_value;
|
unsigned int _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("crc32", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
|
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
|
||||||
&data, &crc)) {
|
&data, &crc)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -492,7 +484,7 @@ PyDoc_STRVAR(binascii_a2b_qp__doc__,
|
||||||
"Decode a string of qp-encoded data.");
|
"Decode a string of qp-encoded data.");
|
||||||
|
|
||||||
#define BINASCII_A2B_QP_METHODDEF \
|
#define BINASCII_A2B_QP_METHODDEF \
|
||||||
{"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_FASTCALL, binascii_a2b_qp__doc__},
|
{"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_FASTCALL|METH_KEYWORDS, binascii_a2b_qp__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header);
|
binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header);
|
||||||
|
@ -531,7 +523,7 @@ PyDoc_STRVAR(binascii_b2a_qp__doc__,
|
||||||
"are both encoded. When quotetabs is set, space and tabs are encoded.");
|
"are both encoded. When quotetabs is set, space and tabs are encoded.");
|
||||||
|
|
||||||
#define BINASCII_B2A_QP_METHODDEF \
|
#define BINASCII_B2A_QP_METHODDEF \
|
||||||
{"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_FASTCALL, binascii_b2a_qp__doc__},
|
{"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_FASTCALL|METH_KEYWORDS, binascii_b2a_qp__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
|
binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
|
||||||
|
@ -562,4 +554,4 @@ exit:
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=490f08a964e97390 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=2878727c0cf4f636 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -647,16 +647,12 @@ static PyObject *
|
||||||
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj);
|
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_complex x;
|
Py_complex x;
|
||||||
PyObject *y_obj = NULL;
|
PyObject *y_obj = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("log", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "D|O:log",
|
if (!_PyArg_ParseStack(args, nargs, "D|O:log",
|
||||||
&x, &y_obj)) {
|
&x, &y_obj)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -736,16 +732,12 @@ static PyObject *
|
||||||
cmath_rect_impl(PyObject *module, double r, double phi);
|
cmath_rect_impl(PyObject *module, double r, double phi);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
double r;
|
double r;
|
||||||
double phi;
|
double phi;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rect", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "dd:rect",
|
if (!_PyArg_ParseStack(args, nargs, "dd:rect",
|
||||||
&r, &phi)) {
|
&r, &phi)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -859,7 +851,7 @@ PyDoc_STRVAR(cmath_isclose__doc__,
|
||||||
"not close to anything, even itself. inf and -inf are only close to themselves.");
|
"not close to anything, even itself. inf and -inf are only close to themselves.");
|
||||||
|
|
||||||
#define CMATH_ISCLOSE_METHODDEF \
|
#define CMATH_ISCLOSE_METHODDEF \
|
||||||
{"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL, cmath_isclose__doc__},
|
{"isclose", (PyCFunction)cmath_isclose, METH_FASTCALL|METH_KEYWORDS, cmath_isclose__doc__},
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b,
|
cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b,
|
||||||
|
@ -890,4 +882,4 @@ cmath_isclose(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=11a0b5bb8a652de6 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=51ba28d27d10264e input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -25,17 +25,13 @@ static PyObject *
|
||||||
fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg);
|
fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
int code;
|
int code;
|
||||||
PyObject *arg = NULL;
|
PyObject *arg = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("fcntl", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&i|O:fcntl",
|
if (!_PyArg_ParseStack(args, nargs, "O&i|O:fcntl",
|
||||||
conv_descriptor, &fd, &code, &arg)) {
|
conv_descriptor, &fd, &code, &arg)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -87,7 +83,7 @@ fcntl_ioctl_impl(PyObject *module, int fd, unsigned int code,
|
||||||
PyObject *ob_arg, int mutate_arg);
|
PyObject *ob_arg, int mutate_arg);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -95,10 +91,6 @@ fcntl_ioctl(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
|
||||||
PyObject *ob_arg = NULL;
|
PyObject *ob_arg = NULL;
|
||||||
int mutate_arg = 1;
|
int mutate_arg = 1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ioctl", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&I|Op:ioctl",
|
if (!_PyArg_ParseStack(args, nargs, "O&I|Op:ioctl",
|
||||||
conv_descriptor, &fd, &code, &ob_arg, &mutate_arg)) {
|
conv_descriptor, &fd, &code, &ob_arg, &mutate_arg)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -125,16 +117,12 @@ static PyObject *
|
||||||
fcntl_flock_impl(PyObject *module, int fd, int code);
|
fcntl_flock_impl(PyObject *module, int fd, int code);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
int code;
|
int code;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("flock", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&i:flock",
|
if (!_PyArg_ParseStack(args, nargs, "O&i:flock",
|
||||||
conv_descriptor, &fd, &code)) {
|
conv_descriptor, &fd, &code)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -180,7 +168,7 @@ fcntl_lockf_impl(PyObject *module, int fd, int code, PyObject *lenobj,
|
||||||
PyObject *startobj, int whence);
|
PyObject *startobj, int whence);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -189,10 +177,6 @@ fcntl_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
|
||||||
PyObject *startobj = NULL;
|
PyObject *startobj = NULL;
|
||||||
int whence = 0;
|
int whence = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lockf", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&i|OOi:lockf",
|
if (!_PyArg_ParseStack(args, nargs, "O&i|OOi:lockf",
|
||||||
conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) {
|
conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -202,4 +186,4 @@ fcntl_lockf(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnam
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=f189ac833d1448af input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=6105e3ada306f434 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -79,7 +79,7 @@ PyDoc_STRVAR(gc_collect__doc__,
|
||||||
"The number of unreachable objects is returned.");
|
"The number of unreachable objects is returned.");
|
||||||
|
|
||||||
#define GC_COLLECT_METHODDEF \
|
#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
|
static Py_ssize_t
|
||||||
gc_collect_impl(PyObject *module, int generation);
|
gc_collect_impl(PyObject *module, int generation);
|
||||||
|
@ -255,4 +255,4 @@ PyDoc_STRVAR(gc_is_tracked__doc__,
|
||||||
|
|
||||||
#define GC_IS_TRACKED_METHODDEF \
|
#define GC_IS_TRACKED_METHODDEF \
|
||||||
{"is_tracked", (PyCFunction)gc_is_tracked, METH_O, gc_is_tracked__doc__},
|
{"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]*/
|
||||||
|
|
|
@ -11,7 +11,7 @@ PyDoc_STRVAR(grp_getgrgid__doc__,
|
||||||
"If id is not valid, raise KeyError.");
|
"If id is not valid, raise KeyError.");
|
||||||
|
|
||||||
#define GRP_GETGRGID_METHODDEF \
|
#define GRP_GETGRGID_METHODDEF \
|
||||||
{"getgrgid", (PyCFunction)grp_getgrgid, METH_FASTCALL, grp_getgrgid__doc__},
|
{"getgrgid", (PyCFunction)grp_getgrgid, METH_FASTCALL|METH_KEYWORDS, grp_getgrgid__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
grp_getgrgid_impl(PyObject *module, PyObject *id);
|
grp_getgrgid_impl(PyObject *module, PyObject *id);
|
||||||
|
@ -43,7 +43,7 @@ PyDoc_STRVAR(grp_getgrnam__doc__,
|
||||||
"If name is not valid, raise KeyError.");
|
"If name is not valid, raise KeyError.");
|
||||||
|
|
||||||
#define GRP_GETGRNAM_METHODDEF \
|
#define GRP_GETGRNAM_METHODDEF \
|
||||||
{"getgrnam", (PyCFunction)grp_getgrnam, METH_FASTCALL, grp_getgrnam__doc__},
|
{"getgrnam", (PyCFunction)grp_getgrnam, METH_FASTCALL|METH_KEYWORDS, grp_getgrnam__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
grp_getgrnam_impl(PyObject *module, PyObject *name);
|
grp_getgrnam_impl(PyObject *module, PyObject *name);
|
||||||
|
@ -86,4 +86,4 @@ grp_getgrall(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return grp_getgrall_impl(module);
|
return grp_getgrall_impl(module);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=fb690db5e676d378 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=e7ef2cbc437eedcb input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -15,16 +15,12 @@ static PyObject *
|
||||||
math_gcd_impl(PyObject *module, PyObject *a, PyObject *b);
|
math_gcd_impl(PyObject *module, PyObject *a, PyObject *b);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *a;
|
PyObject *a;
|
||||||
PyObject *b;
|
PyObject *b;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("gcd", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "gcd",
|
if (!_PyArg_UnpackStack(args, nargs, "gcd",
|
||||||
2, 2,
|
2, 2,
|
||||||
&a, &b)) {
|
&a, &b)) {
|
||||||
|
@ -136,16 +132,12 @@ static PyObject *
|
||||||
math_ldexp_impl(PyObject *module, double x, PyObject *i);
|
math_ldexp_impl(PyObject *module, double x, PyObject *i);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
double x;
|
double x;
|
||||||
PyObject *i;
|
PyObject *i;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ldexp", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "dO:ldexp",
|
if (!_PyArg_ParseStack(args, nargs, "dO:ldexp",
|
||||||
&x, &i)) {
|
&x, &i)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -261,16 +253,12 @@ static PyObject *
|
||||||
math_fmod_impl(PyObject *module, double x, double y);
|
math_fmod_impl(PyObject *module, double x, double y);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
double x;
|
double x;
|
||||||
double y;
|
double y;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("fmod", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "dd:fmod",
|
if (!_PyArg_ParseStack(args, nargs, "dd:fmod",
|
||||||
&x, &y)) {
|
&x, &y)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -294,16 +282,12 @@ static PyObject *
|
||||||
math_hypot_impl(PyObject *module, double x, double y);
|
math_hypot_impl(PyObject *module, double x, double y);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
double x;
|
double x;
|
||||||
double y;
|
double y;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("hypot", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "dd:hypot",
|
if (!_PyArg_ParseStack(args, nargs, "dd:hypot",
|
||||||
&x, &y)) {
|
&x, &y)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -327,16 +311,12 @@ static PyObject *
|
||||||
math_pow_impl(PyObject *module, double x, double y);
|
math_pow_impl(PyObject *module, double x, double y);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
double x;
|
double x;
|
||||||
double y;
|
double y;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pow", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "dd:pow",
|
if (!_PyArg_ParseStack(args, nargs, "dd:pow",
|
||||||
&x, &y)) {
|
&x, &y)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -505,7 +485,7 @@ PyDoc_STRVAR(math_isclose__doc__,
|
||||||
"only close to themselves.");
|
"only close to themselves.");
|
||||||
|
|
||||||
#define MATH_ISCLOSE_METHODDEF \
|
#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
|
static int
|
||||||
math_isclose_impl(PyObject *module, double a, double b, double rel_tol,
|
math_isclose_impl(PyObject *module, double a, double b, double rel_tol,
|
||||||
|
@ -536,4 +516,4 @@ math_isclose(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwna
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=c9f1ac6ded547cc8 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=d9bfbd645d273209 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -72,7 +72,7 @@ PyDoc_STRVAR(_md5_md5__doc__,
|
||||||
"Return a new MD5 hash object; optionally initialized with a string.");
|
"Return a new MD5 hash object; optionally initialized with a string.");
|
||||||
|
|
||||||
#define _MD5_MD5_METHODDEF \
|
#define _MD5_MD5_METHODDEF \
|
||||||
{"md5", (PyCFunction)_md5_md5, METH_FASTCALL, _md5_md5__doc__},
|
{"md5", (PyCFunction)_md5_md5, METH_FASTCALL|METH_KEYWORDS, _md5_md5__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_md5_md5_impl(PyObject *module, PyObject *string);
|
_md5_md5_impl(PyObject *module, PyObject *string);
|
||||||
|
@ -94,4 +94,4 @@ _md5_md5(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=0a975e22cf33f833 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=3139ae340ad1ea4e input=a9049054013a1b77]*/
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -18,16 +18,12 @@ pyexpat_xmlparser_Parse_impl(xmlparseobject *self, PyObject *data,
|
||||||
int isfinal);
|
int isfinal);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *data;
|
PyObject *data;
|
||||||
int isfinal = 0;
|
int isfinal = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("Parse", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|i:Parse",
|
if (!_PyArg_ParseStack(args, nargs, "O|i:Parse",
|
||||||
&data, &isfinal)) {
|
&data, &isfinal)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -128,16 +124,12 @@ pyexpat_xmlparser_ExternalEntityParserCreate_impl(xmlparseobject *self,
|
||||||
const char *encoding);
|
const char *encoding);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *context;
|
const char *context;
|
||||||
const char *encoding = NULL;
|
const char *encoding = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ExternalEntityParserCreate", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "z|s:ExternalEntityParserCreate",
|
if (!_PyArg_ParseStack(args, nargs, "z|s:ExternalEntityParserCreate",
|
||||||
&context, &encoding)) {
|
&context, &encoding)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -199,15 +191,11 @@ static PyObject *
|
||||||
pyexpat_xmlparser_UseForeignDTD_impl(xmlparseobject *self, int flag);
|
pyexpat_xmlparser_UseForeignDTD_impl(xmlparseobject *self, int flag);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int flag = 1;
|
int flag = 1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("UseForeignDTD", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|p:UseForeignDTD",
|
if (!_PyArg_ParseStack(args, nargs, "|p:UseForeignDTD",
|
||||||
&flag)) {
|
&flag)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -245,7 +233,7 @@ PyDoc_STRVAR(pyexpat_ParserCreate__doc__,
|
||||||
"Return a new XML parser object.");
|
"Return a new XML parser object.");
|
||||||
|
|
||||||
#define PYEXPAT_PARSERCREATE_METHODDEF \
|
#define PYEXPAT_PARSERCREATE_METHODDEF \
|
||||||
{"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_FASTCALL, pyexpat_ParserCreate__doc__},
|
{"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_FASTCALL|METH_KEYWORDS, pyexpat_ParserCreate__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
|
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
|
||||||
|
@ -301,4 +289,4 @@ exit:
|
||||||
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
||||||
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
||||||
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
|
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
|
||||||
/*[clinic end generated code: output=a51f9d31aff1a757 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=5d2e355f2b48e6c3 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -66,16 +66,12 @@ static PyObject *
|
||||||
resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits);
|
resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
resource_setrlimit(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
resource_setrlimit(PyObject *module, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
int resource;
|
int resource;
|
||||||
PyObject *limits;
|
PyObject *limits;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setrlimit", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iO:setrlimit",
|
if (!_PyArg_ParseStack(args, nargs, "iO:setrlimit",
|
||||||
&resource, &limits)) {
|
&resource, &limits)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -161,4 +157,4 @@ exit:
|
||||||
#ifndef RESOURCE_PRLIMIT_METHODDEF
|
#ifndef RESOURCE_PRLIMIT_METHODDEF
|
||||||
#define RESOURCE_PRLIMIT_METHODDEF
|
#define RESOURCE_PRLIMIT_METHODDEF
|
||||||
#endif /* !defined(RESOURCE_PRLIMIT_METHODDEF) */
|
#endif /* !defined(RESOURCE_PRLIMIT_METHODDEF) */
|
||||||
/*[clinic end generated code: output=158aace6e532949e input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=d7dabf49ce5b767f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha1_sha1__doc__,
|
||||||
"Return a new SHA1 hash object; optionally initialized with a string.");
|
"Return a new SHA1 hash object; optionally initialized with a string.");
|
||||||
|
|
||||||
#define _SHA1_SHA1_METHODDEF \
|
#define _SHA1_SHA1_METHODDEF \
|
||||||
{"sha1", (PyCFunction)_sha1_sha1, METH_FASTCALL, _sha1_sha1__doc__},
|
{"sha1", (PyCFunction)_sha1_sha1, METH_FASTCALL|METH_KEYWORDS, _sha1_sha1__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sha1_sha1_impl(PyObject *module, PyObject *string);
|
_sha1_sha1_impl(PyObject *module, PyObject *string);
|
||||||
|
@ -94,4 +94,4 @@ _sha1_sha1(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwname
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=8e6b04c7e0407be2 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=594cf600d6ba4776 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha256_sha256__doc__,
|
||||||
"Return a new SHA-256 hash object; optionally initialized with a string.");
|
"Return a new SHA-256 hash object; optionally initialized with a string.");
|
||||||
|
|
||||||
#define _SHA256_SHA256_METHODDEF \
|
#define _SHA256_SHA256_METHODDEF \
|
||||||
{"sha256", (PyCFunction)_sha256_sha256, METH_FASTCALL, _sha256_sha256__doc__},
|
{"sha256", (PyCFunction)_sha256_sha256, METH_FASTCALL|METH_KEYWORDS, _sha256_sha256__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sha256_sha256_impl(PyObject *module, PyObject *string);
|
_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.");
|
"Return a new SHA-224 hash object; optionally initialized with a string.");
|
||||||
|
|
||||||
#define _SHA256_SHA224_METHODDEF \
|
#define _SHA256_SHA224_METHODDEF \
|
||||||
{"sha224", (PyCFunction)_sha256_sha224, METH_FASTCALL, _sha256_sha224__doc__},
|
{"sha224", (PyCFunction)_sha256_sha224, METH_FASTCALL|METH_KEYWORDS, _sha256_sha224__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sha256_sha224_impl(PyObject *module, PyObject *string);
|
_sha256_sha224_impl(PyObject *module, PyObject *string);
|
||||||
|
@ -124,4 +124,4 @@ _sha256_sha224(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=7ef4927ee2a3aac4 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=84e7b8365b3ca4d3 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha512_sha512__doc__,
|
||||||
"Return a new SHA-512 hash object; optionally initialized with a string.");
|
"Return a new SHA-512 hash object; optionally initialized with a string.");
|
||||||
|
|
||||||
#define _SHA512_SHA512_METHODDEF \
|
#define _SHA512_SHA512_METHODDEF \
|
||||||
{"sha512", (PyCFunction)_sha512_sha512, METH_FASTCALL, _sha512_sha512__doc__},
|
{"sha512", (PyCFunction)_sha512_sha512, METH_FASTCALL|METH_KEYWORDS, _sha512_sha512__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sha512_sha512_impl(PyObject *module, PyObject *string);
|
_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.");
|
"Return a new SHA-384 hash object; optionally initialized with a string.");
|
||||||
|
|
||||||
#define _SHA512_SHA384_METHODDEF \
|
#define _SHA512_SHA384_METHODDEF \
|
||||||
{"sha384", (PyCFunction)_sha512_sha384, METH_FASTCALL, _sha512_sha384__doc__},
|
{"sha384", (PyCFunction)_sha512_sha384, METH_FASTCALL|METH_KEYWORDS, _sha512_sha384__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sha512_sha384_impl(PyObject *module, PyObject *string);
|
_sha512_sha384_impl(PyObject *module, PyObject *string);
|
||||||
|
@ -124,4 +124,4 @@ _sha512_sha384(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kw
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=7bb7a49159e9b469 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=2f6ad0831d16c35f input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -80,16 +80,12 @@ static PyObject *
|
||||||
signal_signal_impl(PyObject *module, int signalnum, PyObject *handler);
|
signal_signal_impl(PyObject *module, int signalnum, PyObject *handler);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int signalnum;
|
int signalnum;
|
||||||
PyObject *handler;
|
PyObject *handler;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("signal", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iO:signal",
|
if (!_PyArg_ParseStack(args, nargs, "iO:signal",
|
||||||
&signalnum, &handler)) {
|
&signalnum, &handler)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -151,16 +147,12 @@ static PyObject *
|
||||||
signal_siginterrupt_impl(PyObject *module, int signalnum, int flag);
|
signal_siginterrupt_impl(PyObject *module, int signalnum, int flag);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int signalnum;
|
int signalnum;
|
||||||
int flag;
|
int flag;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("siginterrupt", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ii:siginterrupt",
|
if (!_PyArg_ParseStack(args, nargs, "ii:siginterrupt",
|
||||||
&signalnum, &flag)) {
|
&signalnum, &flag)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -194,17 +186,13 @@ signal_setitimer_impl(PyObject *module, int which, double seconds,
|
||||||
double interval);
|
double interval);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int which;
|
int which;
|
||||||
double seconds;
|
double seconds;
|
||||||
double interval = 0.0;
|
double interval = 0.0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setitimer", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "id|d:setitimer",
|
if (!_PyArg_ParseStack(args, nargs, "id|d:setitimer",
|
||||||
&which, &seconds, &interval)) {
|
&which, &seconds, &interval)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -263,16 +251,12 @@ static PyObject *
|
||||||
signal_pthread_sigmask_impl(PyObject *module, int how, PyObject *mask);
|
signal_pthread_sigmask_impl(PyObject *module, int how, PyObject *mask);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int how;
|
int how;
|
||||||
PyObject *mask;
|
PyObject *mask;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pthread_sigmask", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iO:pthread_sigmask",
|
if (!_PyArg_ParseStack(args, nargs, "iO:pthread_sigmask",
|
||||||
&how, &mask)) {
|
&how, &mask)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -360,16 +344,12 @@ signal_sigtimedwait_impl(PyObject *module, PyObject *sigset,
|
||||||
PyObject *timeout_obj);
|
PyObject *timeout_obj);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *sigset;
|
PyObject *sigset;
|
||||||
PyObject *timeout_obj;
|
PyObject *timeout_obj;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("sigtimedwait", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "sigtimedwait",
|
if (!_PyArg_UnpackStack(args, nargs, "sigtimedwait",
|
||||||
2, 2,
|
2, 2,
|
||||||
&sigset, &timeout_obj)) {
|
&sigset, &timeout_obj)) {
|
||||||
|
@ -399,16 +379,12 @@ signal_pthread_kill_impl(PyObject *module, unsigned long thread_id,
|
||||||
int signalnum);
|
int signalnum);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
unsigned long thread_id;
|
unsigned long thread_id;
|
||||||
int signalnum;
|
int signalnum;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pthread_kill", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ki:pthread_kill",
|
if (!_PyArg_ParseStack(args, nargs, "ki:pthread_kill",
|
||||||
&thread_id, &signalnum)) {
|
&thread_id, &signalnum)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -464,4 +440,4 @@ exit:
|
||||||
#ifndef SIGNAL_PTHREAD_KILL_METHODDEF
|
#ifndef SIGNAL_PTHREAD_KILL_METHODDEF
|
||||||
#define SIGNAL_PTHREAD_KILL_METHODDEF
|
#define SIGNAL_PTHREAD_KILL_METHODDEF
|
||||||
#endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */
|
#endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */
|
||||||
/*[clinic end generated code: output=1a795d863c3bb302 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=9403ef0c5d0f7ee0 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -16,17 +16,13 @@ _symtable_symtable_impl(PyObject *module, const char *str,
|
||||||
PyObject *filename, const char *startstr);
|
PyObject *filename, const char *startstr);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *str;
|
const char *str;
|
||||||
PyObject *filename;
|
PyObject *filename;
|
||||||
const char *startstr;
|
const char *startstr;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("symtable", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "sO&s:symtable",
|
if (!_PyArg_ParseStack(args, nargs, "sO&s:symtable",
|
||||||
&str, PyUnicode_FSDecoder, &filename, &startstr)) {
|
&str, PyUnicode_FSDecoder, &filename, &startstr)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -36,4 +32,4 @@ _symtable_symtable(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=388595f822b1fc79 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=ef379e514fde8477 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -20,16 +20,12 @@ unicodedata_UCD_decimal_impl(PyObject *self, int chr,
|
||||||
PyObject *default_value);
|
PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int chr;
|
int chr;
|
||||||
PyObject *default_value = NULL;
|
PyObject *default_value = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("decimal", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "C|O:decimal",
|
if (!_PyArg_ParseStack(args, nargs, "C|O:decimal",
|
||||||
&chr, &default_value)) {
|
&chr, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -57,16 +53,12 @@ static PyObject *
|
||||||
unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value);
|
unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int chr;
|
int chr;
|
||||||
PyObject *default_value = NULL;
|
PyObject *default_value = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("digit", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "C|O:digit",
|
if (!_PyArg_ParseStack(args, nargs, "C|O:digit",
|
||||||
&chr, &default_value)) {
|
&chr, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -95,16 +87,12 @@ unicodedata_UCD_numeric_impl(PyObject *self, int chr,
|
||||||
PyObject *default_value);
|
PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int chr;
|
int chr;
|
||||||
PyObject *default_value = NULL;
|
PyObject *default_value = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("numeric", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "C|O:numeric",
|
if (!_PyArg_ParseStack(args, nargs, "C|O:numeric",
|
||||||
&chr, &default_value)) {
|
&chr, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -312,16 +300,12 @@ unicodedata_UCD_normalize_impl(PyObject *self, const char *form,
|
||||||
PyObject *input);
|
PyObject *input);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
const char *form;
|
const char *form;
|
||||||
PyObject *input;
|
PyObject *input;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("normalize", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "sU:normalize",
|
if (!_PyArg_ParseStack(args, nargs, "sU:normalize",
|
||||||
&form, &input)) {
|
&form, &input)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -348,16 +332,12 @@ static PyObject *
|
||||||
unicodedata_UCD_name_impl(PyObject *self, int chr, PyObject *default_value);
|
unicodedata_UCD_name_impl(PyObject *self, int chr, PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int chr;
|
int chr;
|
||||||
PyObject *default_value = NULL;
|
PyObject *default_value = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("name", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "C|O:name",
|
if (!_PyArg_ParseStack(args, nargs, "C|O:name",
|
||||||
&chr, &default_value)) {
|
&chr, &default_value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -399,4 +379,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=f69c0bbd7294870b input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=7ec9a3c8fbfd3c3a input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -14,7 +14,7 @@ PyDoc_STRVAR(zlib_compress__doc__,
|
||||||
" Compression level, in 0-9 or -1.");
|
" Compression level, in 0-9 or -1.");
|
||||||
|
|
||||||
#define ZLIB_COMPRESS_METHODDEF \
|
#define ZLIB_COMPRESS_METHODDEF \
|
||||||
{"compress", (PyCFunction)zlib_compress, METH_FASTCALL, zlib_compress__doc__},
|
{"compress", (PyCFunction)zlib_compress, METH_FASTCALL|METH_KEYWORDS, zlib_compress__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
zlib_compress_impl(PyObject *module, Py_buffer *data, int level);
|
zlib_compress_impl(PyObject *module, Py_buffer *data, int level);
|
||||||
|
@ -57,7 +57,7 @@ PyDoc_STRVAR(zlib_decompress__doc__,
|
||||||
" The initial output buffer size.");
|
" The initial output buffer size.");
|
||||||
|
|
||||||
#define ZLIB_DECOMPRESS_METHODDEF \
|
#define ZLIB_DECOMPRESS_METHODDEF \
|
||||||
{"decompress", (PyCFunction)zlib_decompress, METH_FASTCALL, zlib_decompress__doc__},
|
{"decompress", (PyCFunction)zlib_decompress, METH_FASTCALL|METH_KEYWORDS, zlib_decompress__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
|
zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
|
||||||
|
@ -119,7 +119,7 @@ PyDoc_STRVAR(zlib_compressobj__doc__,
|
||||||
" containing subsequences that are likely to occur in the input data.");
|
" containing subsequences that are likely to occur in the input data.");
|
||||||
|
|
||||||
#define ZLIB_COMPRESSOBJ_METHODDEF \
|
#define ZLIB_COMPRESSOBJ_METHODDEF \
|
||||||
{"compressobj", (PyCFunction)zlib_compressobj, METH_FASTCALL, zlib_compressobj__doc__},
|
{"compressobj", (PyCFunction)zlib_compressobj, METH_FASTCALL|METH_KEYWORDS, zlib_compressobj__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
zlib_compressobj_impl(PyObject *module, int level, int method, int wbits,
|
zlib_compressobj_impl(PyObject *module, int level, int method, int wbits,
|
||||||
|
@ -166,7 +166,7 @@ PyDoc_STRVAR(zlib_decompressobj__doc__,
|
||||||
" dictionary as used by the compressor that produced the input data.");
|
" dictionary as used by the compressor that produced the input data.");
|
||||||
|
|
||||||
#define ZLIB_DECOMPRESSOBJ_METHODDEF \
|
#define ZLIB_DECOMPRESSOBJ_METHODDEF \
|
||||||
{"decompressobj", (PyCFunction)zlib_decompressobj, METH_FASTCALL, zlib_decompressobj__doc__},
|
{"decompressobj", (PyCFunction)zlib_decompressobj, METH_FASTCALL|METH_KEYWORDS, zlib_decompressobj__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict);
|
zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict);
|
||||||
|
@ -247,7 +247,7 @@ PyDoc_STRVAR(zlib_Decompress_decompress__doc__,
|
||||||
"Call the flush() method to clear these buffers.");
|
"Call the flush() method to clear these buffers.");
|
||||||
|
|
||||||
#define ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF \
|
#define ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF \
|
||||||
{"decompress", (PyCFunction)zlib_Decompress_decompress, METH_FASTCALL, zlib_Decompress_decompress__doc__},
|
{"decompress", (PyCFunction)zlib_Decompress_decompress, METH_FASTCALL|METH_KEYWORDS, zlib_Decompress_decompress__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data,
|
zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data,
|
||||||
|
@ -296,15 +296,11 @@ static PyObject *
|
||||||
zlib_Compress_flush_impl(compobject *self, int mode);
|
zlib_Compress_flush_impl(compobject *self, int mode);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int mode = Z_FINISH;
|
int mode = Z_FINISH;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("flush", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|i:flush",
|
if (!_PyArg_ParseStack(args, nargs, "|i:flush",
|
||||||
&mode)) {
|
&mode)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -375,15 +371,11 @@ static PyObject *
|
||||||
zlib_Decompress_flush_impl(compobject *self, Py_ssize_t length);
|
zlib_Decompress_flush_impl(compobject *self, Py_ssize_t length);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t length = DEF_BUF_SIZE;
|
Py_ssize_t length = DEF_BUF_SIZE;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("flush", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|O&:flush",
|
if (!_PyArg_ParseStack(args, nargs, "|O&:flush",
|
||||||
ssize_t_converter, &length)) {
|
ssize_t_converter, &length)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -412,16 +404,12 @@ static PyObject *
|
||||||
zlib_adler32_impl(PyObject *module, Py_buffer *data, unsigned int value);
|
zlib_adler32_impl(PyObject *module, Py_buffer *data, unsigned int value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
unsigned int value = 1;
|
unsigned int value = 1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("adler32", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|I:adler32",
|
if (!_PyArg_ParseStack(args, nargs, "y*|I:adler32",
|
||||||
&data, &value)) {
|
&data, &value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -455,16 +443,12 @@ static PyObject *
|
||||||
zlib_crc32_impl(PyObject *module, Py_buffer *data, unsigned int value);
|
zlib_crc32_impl(PyObject *module, Py_buffer *data, unsigned int value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer data = {NULL, NULL};
|
Py_buffer data = {NULL, NULL};
|
||||||
unsigned int value = 0;
|
unsigned int value = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("crc32", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
|
if (!_PyArg_ParseStack(args, nargs, "y*|I:crc32",
|
||||||
&data, &value)) {
|
&data, &value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -483,4 +467,4 @@ exit:
|
||||||
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
|
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
|
||||||
#define ZLIB_COMPRESS_COPY_METHODDEF
|
#define ZLIB_COMPRESS_COPY_METHODDEF
|
||||||
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
|
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
|
||||||
/*[clinic end generated code: output=c7abf02e091bcad3 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=e0184313eb431e95 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -520,10 +520,20 @@ _PyMethodDef_RawFastCallDict(PyMethodDef *method, PyObject *self, PyObject **arg
|
||||||
}
|
}
|
||||||
|
|
||||||
case METH_FASTCALL:
|
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 **stack;
|
||||||
PyObject *kwnames;
|
PyObject *kwnames;
|
||||||
_PyCFunctionFast fastmeth = (_PyCFunctionFast)meth;
|
_PyCFunctionFastWithKeywords fastmeth = (_PyCFunctionFastWithKeywords)meth;
|
||||||
|
|
||||||
if (_PyStack_UnpackDict(args, nargs, kwargs, &stack, &kwnames) < 0) {
|
if (_PyStack_UnpackDict(args, nargs, kwargs, &stack, &kwnames) < 0) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -631,8 +641,15 @@ _PyMethodDef_RawFastCallKeywords(PyMethodDef *method, PyObject *self, PyObject *
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case METH_FASTCALL:
|
case METH_FASTCALL:
|
||||||
|
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 */
|
/* Fast-path: avoid temporary dict to pass keyword arguments */
|
||||||
result = ((_PyCFunctionFast)meth) (self, args, nargs, kwnames);
|
result = ((_PyCFunctionFastWithKeywords)meth) (self, args, nargs, kwnames);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case METH_VARARGS:
|
case METH_VARARGS:
|
||||||
|
|
|
@ -51,7 +51,7 @@ PyDoc_STRVAR(bytearray_translate__doc__,
|
||||||
"The remaining characters are mapped through the given translation table.");
|
"The remaining characters are mapped through the given translation table.");
|
||||||
|
|
||||||
#define BYTEARRAY_TRANSLATE_METHODDEF \
|
#define BYTEARRAY_TRANSLATE_METHODDEF \
|
||||||
{"translate", (PyCFunction)bytearray_translate, METH_FASTCALL, bytearray_translate__doc__},
|
{"translate", (PyCFunction)bytearray_translate, METH_FASTCALL|METH_KEYWORDS, bytearray_translate__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
bytearray_translate_impl(PyByteArrayObject *self, PyObject *table,
|
bytearray_translate_impl(PyByteArrayObject *self, PyObject *table,
|
||||||
|
@ -94,16 +94,12 @@ static PyObject *
|
||||||
bytearray_maketrans_impl(Py_buffer *frm, Py_buffer *to);
|
bytearray_maketrans_impl(Py_buffer *frm, Py_buffer *to);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer frm = {NULL, NULL};
|
Py_buffer frm = {NULL, NULL};
|
||||||
Py_buffer to = {NULL, NULL};
|
Py_buffer to = {NULL, NULL};
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
|
||||||
&frm, &to)) {
|
&frm, &to)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -144,17 +140,13 @@ bytearray_replace_impl(PyByteArrayObject *self, Py_buffer *old,
|
||||||
Py_buffer *new, Py_ssize_t count);
|
Py_buffer *new, Py_ssize_t count);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer old = {NULL, NULL};
|
Py_buffer old = {NULL, NULL};
|
||||||
Py_buffer new = {NULL, NULL};
|
Py_buffer new = {NULL, NULL};
|
||||||
Py_ssize_t count = -1;
|
Py_ssize_t count = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
|
||||||
&old, &new, &count)) {
|
&old, &new, &count)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -189,7 +181,7 @@ PyDoc_STRVAR(bytearray_split__doc__,
|
||||||
" -1 (the default value) means no limit.");
|
" -1 (the default value) means no limit.");
|
||||||
|
|
||||||
#define BYTEARRAY_SPLIT_METHODDEF \
|
#define BYTEARRAY_SPLIT_METHODDEF \
|
||||||
{"split", (PyCFunction)bytearray_split, METH_FASTCALL, bytearray_split__doc__},
|
{"split", (PyCFunction)bytearray_split, METH_FASTCALL|METH_KEYWORDS, bytearray_split__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
bytearray_split_impl(PyByteArrayObject *self, PyObject *sep,
|
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.");
|
"Splitting is done starting at the end of the bytearray and working to the front.");
|
||||||
|
|
||||||
#define BYTEARRAY_RSPLIT_METHODDEF \
|
#define BYTEARRAY_RSPLIT_METHODDEF \
|
||||||
{"rsplit", (PyCFunction)bytearray_rsplit, METH_FASTCALL, bytearray_rsplit__doc__},
|
{"rsplit", (PyCFunction)bytearray_rsplit, METH_FASTCALL|METH_KEYWORDS, bytearray_rsplit__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
bytearray_rsplit_impl(PyByteArrayObject *self, PyObject *sep,
|
bytearray_rsplit_impl(PyByteArrayObject *self, PyObject *sep,
|
||||||
|
@ -324,16 +316,12 @@ static PyObject *
|
||||||
bytearray_insert_impl(PyByteArrayObject *self, Py_ssize_t index, int item);
|
bytearray_insert_impl(PyByteArrayObject *self, Py_ssize_t index, int item);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t index;
|
Py_ssize_t index;
|
||||||
int item;
|
int item;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "nO&:insert",
|
if (!_PyArg_ParseStack(args, nargs, "nO&:insert",
|
||||||
&index, _getbytevalue, &item)) {
|
&index, _getbytevalue, &item)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -405,15 +393,11 @@ static PyObject *
|
||||||
bytearray_pop_impl(PyByteArrayObject *self, Py_ssize_t index);
|
bytearray_pop_impl(PyByteArrayObject *self, Py_ssize_t index);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t index = -1;
|
Py_ssize_t index = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
|
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
|
||||||
&index)) {
|
&index)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -469,15 +453,11 @@ static PyObject *
|
||||||
bytearray_strip_impl(PyByteArrayObject *self, PyObject *bytes);
|
bytearray_strip_impl(PyByteArrayObject *self, PyObject *bytes);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *bytes = Py_None;
|
PyObject *bytes = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "strip",
|
if (!_PyArg_UnpackStack(args, nargs, "strip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&bytes)) {
|
&bytes)) {
|
||||||
|
@ -504,15 +484,11 @@ static PyObject *
|
||||||
bytearray_lstrip_impl(PyByteArrayObject *self, PyObject *bytes);
|
bytearray_lstrip_impl(PyByteArrayObject *self, PyObject *bytes);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *bytes = Py_None;
|
PyObject *bytes = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
|
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&bytes)) {
|
&bytes)) {
|
||||||
|
@ -539,15 +515,11 @@ static PyObject *
|
||||||
bytearray_rstrip_impl(PyByteArrayObject *self, PyObject *bytes);
|
bytearray_rstrip_impl(PyByteArrayObject *self, PyObject *bytes);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *bytes = Py_None;
|
PyObject *bytes = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
|
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&bytes)) {
|
&bytes)) {
|
||||||
|
@ -575,7 +547,7 @@ PyDoc_STRVAR(bytearray_decode__doc__,
|
||||||
" can handle UnicodeDecodeErrors.");
|
" can handle UnicodeDecodeErrors.");
|
||||||
|
|
||||||
#define BYTEARRAY_DECODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
bytearray_decode_impl(PyByteArrayObject *self, const char *encoding,
|
bytearray_decode_impl(PyByteArrayObject *self, const char *encoding,
|
||||||
|
@ -623,7 +595,7 @@ PyDoc_STRVAR(bytearray_splitlines__doc__,
|
||||||
"true.");
|
"true.");
|
||||||
|
|
||||||
#define BYTEARRAY_SPLITLINES_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
bytearray_splitlines_impl(PyByteArrayObject *self, int keepends);
|
bytearray_splitlines_impl(PyByteArrayObject *self, int keepends);
|
||||||
|
@ -707,15 +679,11 @@ static PyObject *
|
||||||
bytearray_reduce_ex_impl(PyByteArrayObject *self, int proto);
|
bytearray_reduce_ex_impl(PyByteArrayObject *self, int proto);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int proto = 0;
|
int proto = 0;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("__reduce_ex__", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|i:__reduce_ex__",
|
if (!_PyArg_ParseStack(args, nargs, "|i:__reduce_ex__",
|
||||||
&proto)) {
|
&proto)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -743,4 +711,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return bytearray_sizeof_impl(self);
|
return bytearray_sizeof_impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=f0079d8ee82614f7 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=e53f10084457a46b input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -17,7 +17,7 @@ PyDoc_STRVAR(bytes_split__doc__,
|
||||||
" -1 (the default value) means no limit.");
|
" -1 (the default value) means no limit.");
|
||||||
|
|
||||||
#define BYTES_SPLIT_METHODDEF \
|
#define BYTES_SPLIT_METHODDEF \
|
||||||
{"split", (PyCFunction)bytes_split, METH_FASTCALL, bytes_split__doc__},
|
{"split", (PyCFunction)bytes_split, METH_FASTCALL|METH_KEYWORDS, bytes_split__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
||||||
|
@ -136,7 +136,7 @@ PyDoc_STRVAR(bytes_rsplit__doc__,
|
||||||
"Splitting is done starting at the end of the bytes and working to the front.");
|
"Splitting is done starting at the end of the bytes and working to the front.");
|
||||||
|
|
||||||
#define BYTES_RSPLIT_METHODDEF \
|
#define BYTES_RSPLIT_METHODDEF \
|
||||||
{"rsplit", (PyCFunction)bytes_rsplit, METH_FASTCALL, bytes_rsplit__doc__},
|
{"rsplit", (PyCFunction)bytes_rsplit, METH_FASTCALL|METH_KEYWORDS, bytes_rsplit__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
||||||
|
@ -190,15 +190,11 @@ static PyObject *
|
||||||
bytes_strip_impl(PyBytesObject *self, PyObject *bytes);
|
bytes_strip_impl(PyBytesObject *self, PyObject *bytes);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *bytes = Py_None;
|
PyObject *bytes = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "strip",
|
if (!_PyArg_UnpackStack(args, nargs, "strip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&bytes)) {
|
&bytes)) {
|
||||||
|
@ -225,15 +221,11 @@ static PyObject *
|
||||||
bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes);
|
bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *bytes = Py_None;
|
PyObject *bytes = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
|
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&bytes)) {
|
&bytes)) {
|
||||||
|
@ -260,15 +252,11 @@ static PyObject *
|
||||||
bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes);
|
bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *bytes = Py_None;
|
PyObject *bytes = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
|
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&bytes)) {
|
&bytes)) {
|
||||||
|
@ -293,7 +281,7 @@ PyDoc_STRVAR(bytes_translate__doc__,
|
||||||
"The remaining characters are mapped through the given translation table.");
|
"The remaining characters are mapped through the given translation table.");
|
||||||
|
|
||||||
#define BYTES_TRANSLATE_METHODDEF \
|
#define BYTES_TRANSLATE_METHODDEF \
|
||||||
{"translate", (PyCFunction)bytes_translate, METH_FASTCALL, bytes_translate__doc__},
|
{"translate", (PyCFunction)bytes_translate, METH_FASTCALL|METH_KEYWORDS, bytes_translate__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
bytes_translate_impl(PyBytesObject *self, PyObject *table,
|
bytes_translate_impl(PyBytesObject *self, PyObject *table,
|
||||||
|
@ -336,16 +324,12 @@ static PyObject *
|
||||||
bytes_maketrans_impl(Py_buffer *frm, Py_buffer *to);
|
bytes_maketrans_impl(Py_buffer *frm, Py_buffer *to);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer frm = {NULL, NULL};
|
Py_buffer frm = {NULL, NULL};
|
||||||
Py_buffer to = {NULL, NULL};
|
Py_buffer to = {NULL, NULL};
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*:maketrans",
|
||||||
&frm, &to)) {
|
&frm, &to)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -386,17 +370,13 @@ bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new,
|
||||||
Py_ssize_t count);
|
Py_ssize_t count);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_buffer old = {NULL, NULL};
|
Py_buffer old = {NULL, NULL};
|
||||||
Py_buffer new = {NULL, NULL};
|
Py_buffer new = {NULL, NULL};
|
||||||
Py_ssize_t count = -1;
|
Py_ssize_t count = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
|
if (!_PyArg_ParseStack(args, nargs, "y*y*|n:replace",
|
||||||
&old, &new, &count)) {
|
&old, &new, &count)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -432,7 +412,7 @@ PyDoc_STRVAR(bytes_decode__doc__,
|
||||||
" can handle UnicodeDecodeErrors.");
|
" can handle UnicodeDecodeErrors.");
|
||||||
|
|
||||||
#define BYTES_DECODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
bytes_decode_impl(PyBytesObject *self, const char *encoding,
|
bytes_decode_impl(PyBytesObject *self, const char *encoding,
|
||||||
|
@ -467,7 +447,7 @@ PyDoc_STRVAR(bytes_splitlines__doc__,
|
||||||
"true.");
|
"true.");
|
||||||
|
|
||||||
#define BYTES_SPLITLINES_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
bytes_splitlines_impl(PyBytesObject *self, int keepends);
|
bytes_splitlines_impl(PyBytesObject *self, int keepends);
|
||||||
|
@ -519,4 +499,4 @@ bytes_fromhex(PyTypeObject *type, PyObject *arg)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=a82999760469bbec input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=9e3374bd7d04c163 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -15,16 +15,12 @@ static PyObject *
|
||||||
dict_fromkeys_impl(PyTypeObject *type, PyObject *iterable, PyObject *value);
|
dict_fromkeys_impl(PyTypeObject *type, PyObject *iterable, PyObject *value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *iterable;
|
PyObject *iterable;
|
||||||
PyObject *value = Py_None;
|
PyObject *value = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("fromkeys", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "fromkeys",
|
if (!_PyArg_UnpackStack(args, nargs, "fromkeys",
|
||||||
1, 2,
|
1, 2,
|
||||||
&iterable, &value)) {
|
&iterable, &value)) {
|
||||||
|
@ -58,16 +54,12 @@ static PyObject *
|
||||||
dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value);
|
dict_get_impl(PyDictObject *self, PyObject *key, PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
PyObject *default_value = Py_None;
|
PyObject *default_value = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("get", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "get",
|
if (!_PyArg_UnpackStack(args, nargs, "get",
|
||||||
1, 2,
|
1, 2,
|
||||||
&key, &default_value)) {
|
&key, &default_value)) {
|
||||||
|
@ -95,16 +87,12 @@ dict_setdefault_impl(PyDictObject *self, PyObject *key,
|
||||||
PyObject *default_value);
|
PyObject *default_value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
PyObject *default_value = Py_None;
|
PyObject *default_value = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setdefault", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
|
if (!_PyArg_UnpackStack(args, nargs, "setdefault",
|
||||||
1, 2,
|
1, 2,
|
||||||
&key, &default_value)) {
|
&key, &default_value)) {
|
||||||
|
@ -115,4 +103,4 @@ dict_setdefault(PyDictObject *self, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=49e03ab4360f5be0 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=8d09902e60b7ab02 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -53,15 +53,11 @@ static PyObject *
|
||||||
float___round___impl(PyObject *self, PyObject *o_ndigits);
|
float___round___impl(PyObject *self, PyObject *o_ndigits);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
float___round__(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
float___round__(PyObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
PyObject *o_ndigits = NULL;
|
PyObject *o_ndigits = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("__round__", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "__round__",
|
if (!_PyArg_UnpackStack(args, nargs, "__round__",
|
||||||
0, 1,
|
0, 1,
|
||||||
&o_ndigits)) {
|
&o_ndigits)) {
|
||||||
|
@ -267,16 +263,12 @@ float___set_format___impl(PyTypeObject *type, const char *typestr,
|
||||||
const char *fmt);
|
const char *fmt);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
float___set_format__(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
float___set_format__(PyTypeObject *type, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
const char *typestr;
|
const char *typestr;
|
||||||
const char *fmt;
|
const char *fmt;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("__set_format__", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ss:__set_format__",
|
if (!_PyArg_ParseStack(args, nargs, "ss:__set_format__",
|
||||||
&typestr, &fmt)) {
|
&typestr, &fmt)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -313,4 +305,4 @@ float___format__(PyObject *self, PyObject *arg)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=b2271e7413b36162 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=90c06ea9d72130cc input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -15,16 +15,12 @@ static PyObject *
|
||||||
list_insert_impl(PyListObject *self, Py_ssize_t index, PyObject *object);
|
list_insert_impl(PyListObject *self, Py_ssize_t index, PyObject *object);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
list_insert(PyListObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
list_insert(PyListObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t index;
|
Py_ssize_t index;
|
||||||
PyObject *object;
|
PyObject *object;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("insert", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
|
if (!_PyArg_ParseStack(args, nargs, "nO:insert",
|
||||||
&index, &object)) {
|
&index, &object)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -104,15 +100,11 @@ static PyObject *
|
||||||
list_pop_impl(PyListObject *self, Py_ssize_t index);
|
list_pop_impl(PyListObject *self, Py_ssize_t index);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
list_pop(PyListObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
list_pop(PyListObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t index = -1;
|
Py_ssize_t index = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pop", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
|
if (!_PyArg_ParseStack(args, nargs, "|n:pop",
|
||||||
&index)) {
|
&index)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -130,7 +122,7 @@ PyDoc_STRVAR(list_sort__doc__,
|
||||||
"Stable sort *IN PLACE*.");
|
"Stable sort *IN PLACE*.");
|
||||||
|
|
||||||
#define LIST_SORT_METHODDEF \
|
#define LIST_SORT_METHODDEF \
|
||||||
{"sort", (PyCFunction)list_sort, METH_FASTCALL, list_sort__doc__},
|
{"sort", (PyCFunction)list_sort, METH_FASTCALL|METH_KEYWORDS, list_sort__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
list_sort_impl(PyListObject *self, PyObject *keyfunc, int reverse);
|
list_sort_impl(PyListObject *self, PyObject *keyfunc, int reverse);
|
||||||
|
@ -188,17 +180,13 @@ list_index_impl(PyListObject *self, PyObject *value, Py_ssize_t start,
|
||||||
Py_ssize_t stop);
|
Py_ssize_t stop);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
list_index(PyListObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
list_index(PyListObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
Py_ssize_t start = 0;
|
Py_ssize_t start = 0;
|
||||||
Py_ssize_t stop = PY_SSIZE_T_MAX;
|
Py_ssize_t stop = PY_SSIZE_T_MAX;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("index", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
|
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
|
||||||
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
|
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -297,4 +285,4 @@ list___reversed__(PyListObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return list___reversed___impl(self);
|
return list___reversed___impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=63cbe6d6320e916f input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=4a4f72a5e7ff5068 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -139,7 +139,7 @@ PyDoc_STRVAR(int_to_bytes__doc__,
|
||||||
" is raised.");
|
" is raised.");
|
||||||
|
|
||||||
#define INT_TO_BYTES_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder,
|
int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder,
|
||||||
|
@ -186,7 +186,7 @@ PyDoc_STRVAR(int_from_bytes__doc__,
|
||||||
" Indicates whether two\'s complement is used to represent the integer.");
|
" Indicates whether two\'s complement is used to represent the integer.");
|
||||||
|
|
||||||
#define INT_FROM_BYTES_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
int_from_bytes_impl(PyTypeObject *type, PyObject *bytes_obj,
|
int_from_bytes_impl(PyTypeObject *type, PyObject *bytes_obj,
|
||||||
|
@ -211,4 +211,4 @@ int_from_bytes(PyTypeObject *type, PyObject **args, Py_ssize_t nargs, PyObject *
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=c1ce9c11929b0bab input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=c9adfdc329651cc4 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -9,7 +9,7 @@ PyDoc_STRVAR(OrderedDict_fromkeys__doc__,
|
||||||
"Create a new ordered dictionary with keys from iterable and values set to value.");
|
"Create a new ordered dictionary with keys from iterable and values set to value.");
|
||||||
|
|
||||||
#define ORDEREDDICT_FROMKEYS_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
OrderedDict_fromkeys_impl(PyTypeObject *type, PyObject *seq, PyObject *value);
|
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.");
|
"Return the value for key if key is in the dictionary, else default.");
|
||||||
|
|
||||||
#define ORDEREDDICT_SETDEFAULT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
OrderedDict_setdefault_impl(PyODictObject *self, PyObject *key,
|
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.");
|
"Pairs are returned in LIFO order if last is true or FIFO order if false.");
|
||||||
|
|
||||||
#define ORDEREDDICT_POPITEM_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
OrderedDict_popitem_impl(PyODictObject *self, int last);
|
OrderedDict_popitem_impl(PyODictObject *self, int last);
|
||||||
|
@ -108,7 +108,7 @@ PyDoc_STRVAR(OrderedDict_move_to_end__doc__,
|
||||||
"Raise KeyError if the element does not exist.");
|
"Raise KeyError if the element does not exist.");
|
||||||
|
|
||||||
#define ORDEREDDICT_MOVE_TO_END_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
OrderedDict_move_to_end_impl(PyODictObject *self, PyObject *key, int last);
|
OrderedDict_move_to_end_impl(PyODictObject *self, PyObject *key, int last);
|
||||||
|
@ -131,4 +131,4 @@ OrderedDict_move_to_end(PyODictObject *self, PyObject **args, Py_ssize_t nargs,
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=a19a24ac37b42e5e input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=b2f82eca6e8c8084 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -18,17 +18,13 @@ tuple_index_impl(PyTupleObject *self, PyObject *value, Py_ssize_t start,
|
||||||
Py_ssize_t stop);
|
Py_ssize_t stop);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
tuple_index(PyTupleObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
tuple_index(PyTupleObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
Py_ssize_t start = 0;
|
Py_ssize_t start = 0;
|
||||||
Py_ssize_t stop = PY_SSIZE_T_MAX;
|
Py_ssize_t stop = PY_SSIZE_T_MAX;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("index", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
|
if (!_PyArg_ParseStack(args, nargs, "O|O&O&:index",
|
||||||
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
|
&value, _PyEval_SliceIndexNotNone, &start, _PyEval_SliceIndexNotNone, &stop)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -99,4 +95,4 @@ tuple___getnewargs__(PyTupleObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return tuple___getnewargs___impl(self);
|
return tuple___getnewargs___impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=70b4de94a0002ec3 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=d24a9893b3a740c6 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -77,16 +77,12 @@ static PyObject *
|
||||||
unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
|
unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t width;
|
Py_ssize_t width;
|
||||||
Py_UCS4 fillchar = ' ';
|
Py_UCS4 fillchar = ' ';
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("center", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "n|O&:center",
|
if (!_PyArg_ParseStack(args, nargs, "n|O&:center",
|
||||||
&width, convert_uc, &fillchar)) {
|
&width, convert_uc, &fillchar)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -113,7 +109,7 @@ PyDoc_STRVAR(unicode_encode__doc__,
|
||||||
" codecs.register_error that can handle UnicodeEncodeErrors.");
|
" codecs.register_error that can handle UnicodeEncodeErrors.");
|
||||||
|
|
||||||
#define UNICODE_ENCODE_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
unicode_encode_impl(PyObject *self, const char *encoding, const char *errors);
|
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.");
|
"If tabsize is not given, a tab size of 8 characters is assumed.");
|
||||||
|
|
||||||
#define UNICODE_EXPANDTABS_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
unicode_expandtabs_impl(PyObject *self, int tabsize);
|
unicode_expandtabs_impl(PyObject *self, int tabsize);
|
||||||
|
@ -429,16 +425,12 @@ static PyObject *
|
||||||
unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
|
unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t width;
|
Py_ssize_t width;
|
||||||
Py_UCS4 fillchar = ' ';
|
Py_UCS4 fillchar = ' ';
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ljust", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "n|O&:ljust",
|
if (!_PyArg_ParseStack(args, nargs, "n|O&:ljust",
|
||||||
&width, convert_uc, &fillchar)) {
|
&width, convert_uc, &fillchar)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -482,15 +474,11 @@ static PyObject *
|
||||||
unicode_strip_impl(PyObject *self, PyObject *chars);
|
unicode_strip_impl(PyObject *self, PyObject *chars);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *chars = Py_None;
|
PyObject *chars = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("strip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "strip",
|
if (!_PyArg_UnpackStack(args, nargs, "strip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&chars)) {
|
&chars)) {
|
||||||
|
@ -517,15 +505,11 @@ static PyObject *
|
||||||
unicode_lstrip_impl(PyObject *self, PyObject *chars);
|
unicode_lstrip_impl(PyObject *self, PyObject *chars);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *chars = NULL;
|
PyObject *chars = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("lstrip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
|
if (!_PyArg_UnpackStack(args, nargs, "lstrip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&chars)) {
|
&chars)) {
|
||||||
|
@ -552,15 +536,11 @@ static PyObject *
|
||||||
unicode_rstrip_impl(PyObject *self, PyObject *chars);
|
unicode_rstrip_impl(PyObject *self, PyObject *chars);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *chars = NULL;
|
PyObject *chars = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rstrip", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
|
if (!_PyArg_UnpackStack(args, nargs, "rstrip",
|
||||||
0, 1,
|
0, 1,
|
||||||
&chars)) {
|
&chars)) {
|
||||||
|
@ -593,17 +573,13 @@ unicode_replace_impl(PyObject *self, PyObject *old, PyObject *new,
|
||||||
Py_ssize_t count);
|
Py_ssize_t count);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *old;
|
PyObject *old;
|
||||||
PyObject *new;
|
PyObject *new;
|
||||||
Py_ssize_t count = -1;
|
Py_ssize_t count = -1;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("replace", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "UU|n:replace",
|
if (!_PyArg_ParseStack(args, nargs, "UU|n:replace",
|
||||||
&old, &new, &count)) {
|
&old, &new, &count)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -629,16 +605,12 @@ static PyObject *
|
||||||
unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
|
unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_ssize_t width;
|
Py_ssize_t width;
|
||||||
Py_UCS4 fillchar = ' ';
|
Py_UCS4 fillchar = ' ';
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("rjust", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "n|O&:rjust",
|
if (!_PyArg_ParseStack(args, nargs, "n|O&:rjust",
|
||||||
&width, convert_uc, &fillchar)) {
|
&width, convert_uc, &fillchar)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -664,7 +636,7 @@ PyDoc_STRVAR(unicode_split__doc__,
|
||||||
" -1 (the default value) means no limit.");
|
" -1 (the default value) means no limit.");
|
||||||
|
|
||||||
#define UNICODE_SPLIT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
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.");
|
"Splits are done starting at the end of the string and working to the front.");
|
||||||
|
|
||||||
#define UNICODE_RSPLIT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
unicode_rsplit_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
unicode_rsplit_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit);
|
||||||
|
@ -771,7 +743,7 @@ PyDoc_STRVAR(unicode_splitlines__doc__,
|
||||||
"true.");
|
"true.");
|
||||||
|
|
||||||
#define UNICODE_SPLITLINES_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
unicode_splitlines_impl(PyObject *self, int keepends);
|
unicode_splitlines_impl(PyObject *self, int keepends);
|
||||||
|
@ -833,17 +805,13 @@ static PyObject *
|
||||||
unicode_maketrans_impl(PyObject *x, PyObject *y, PyObject *z);
|
unicode_maketrans_impl(PyObject *x, PyObject *y, PyObject *z);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *x;
|
PyObject *x;
|
||||||
PyObject *y = NULL;
|
PyObject *y = NULL;
|
||||||
PyObject *z = NULL;
|
PyObject *z = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("maketrans", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|UU:maketrans",
|
if (!_PyArg_ParseStack(args, nargs, "O|UU:maketrans",
|
||||||
&x, &y, &z)) {
|
&x, &y, &z)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -962,4 +930,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
|
||||||
{
|
{
|
||||||
return unicode_sizeof_impl(self);
|
return unicode_sizeof_impl(self);
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=339a83c0c100dd17 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=8fd799fd7f2cc724 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -2341,8 +2341,8 @@ dict_update_common(PyObject *self, PyObject *args, PyObject *kwds,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Note: dict.update() uses the METH_VARARGS|METH_KEYWORDS calling convention.
|
/* Note: dict.update() uses the METH_VARARGS|METH_KEYWORDS calling convention.
|
||||||
Using METH_FASTCALL would make dict.update(**dict2) calls slower, see the
|
Using METH_FASTCALL|METH_KEYWORDS would make dict.update(**dict2) calls
|
||||||
issue #29312. */
|
slower, see the issue #29312. */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
dict_update(PyObject *self, PyObject *args, PyObject *kwds)
|
dict_update(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3340,7 +3340,7 @@ static PyMethodDef type_methods[] = {
|
||||||
TYPE_MRO_METHODDEF
|
TYPE_MRO_METHODDEF
|
||||||
TYPE___SUBCLASSES___METHODDEF
|
TYPE___SUBCLASSES___METHODDEF
|
||||||
{"__prepare__", (PyCFunction)type_prepare,
|
{"__prepare__", (PyCFunction)type_prepare,
|
||||||
METH_FASTCALL | METH_CLASS,
|
METH_FASTCALL | METH_KEYWORDS | METH_CLASS,
|
||||||
PyDoc_STR("__prepare__() -> dict\n"
|
PyDoc_STR("__prepare__() -> dict\n"
|
||||||
"used to create the namespace for the class statement")},
|
"used to create the namespace for the class statement")},
|
||||||
TYPE___INSTANCECHECK___METHODDEF
|
TYPE___INSTANCECHECK___METHODDEF
|
||||||
|
|
|
@ -11,7 +11,7 @@ PyDoc_STRVAR(_testconsole_write_input__doc__,
|
||||||
"Writes UTF-16-LE encoded bytes to the console as if typed by a user.");
|
"Writes UTF-16-LE encoded bytes to the console as if typed by a user.");
|
||||||
|
|
||||||
#define _TESTCONSOLE_WRITE_INPUT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_testconsole_write_input_impl(PyObject *module, PyObject *file,
|
_testconsole_write_input_impl(PyObject *module, PyObject *file,
|
||||||
|
@ -47,7 +47,7 @@ PyDoc_STRVAR(_testconsole_read_output__doc__,
|
||||||
"Reads a str from the console as written to stdout.");
|
"Reads a str from the console as written to stdout.");
|
||||||
|
|
||||||
#define _TESTCONSOLE_READ_OUTPUT_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
_testconsole_read_output_impl(PyObject *module, PyObject *file);
|
_testconsole_read_output_impl(PyObject *module, PyObject *file);
|
||||||
|
@ -79,4 +79,4 @@ exit:
|
||||||
#ifndef _TESTCONSOLE_READ_OUTPUT_METHODDEF
|
#ifndef _TESTCONSOLE_READ_OUTPUT_METHODDEF
|
||||||
#define _TESTCONSOLE_READ_OUTPUT_METHODDEF
|
#define _TESTCONSOLE_READ_OUTPUT_METHODDEF
|
||||||
#endif /* !defined(_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]*/
|
||||||
|
|
|
@ -43,17 +43,13 @@ static PyObject *
|
||||||
msvcrt_locking_impl(PyObject *module, int fd, int mode, long nbytes);
|
msvcrt_locking_impl(PyObject *module, int fd, int mode, long nbytes);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
int mode;
|
int mode;
|
||||||
long nbytes;
|
long nbytes;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("locking", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "iil:locking",
|
if (!_PyArg_ParseStack(args, nargs, "iil:locking",
|
||||||
&fd, &mode, &nbytes)) {
|
&fd, &mode, &nbytes)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -82,17 +78,13 @@ static long
|
||||||
msvcrt_setmode_impl(PyObject *module, int fd, int flags);
|
msvcrt_setmode_impl(PyObject *module, int fd, int flags);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int fd;
|
int fd;
|
||||||
int flags;
|
int flags;
|
||||||
long _return_value;
|
long _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setmode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ii:setmode",
|
if (!_PyArg_ParseStack(args, nargs, "ii:setmode",
|
||||||
&fd, &flags)) {
|
&fd, &flags)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -124,17 +116,13 @@ static long
|
||||||
msvcrt_open_osfhandle_impl(PyObject *module, intptr_t handle, int flags);
|
msvcrt_open_osfhandle_impl(PyObject *module, intptr_t handle, int flags);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
intptr_t handle;
|
intptr_t handle;
|
||||||
int flags;
|
int flags;
|
||||||
long _return_value;
|
long _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("open_osfhandle", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, ""_Py_PARSE_INTPTR"i:open_osfhandle",
|
if (!_PyArg_ParseStack(args, nargs, ""_Py_PARSE_INTPTR"i:open_osfhandle",
|
||||||
&handle, &flags)) {
|
&handle, &flags)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -442,17 +430,13 @@ static long
|
||||||
msvcrt_CrtSetReportFile_impl(PyObject *module, int type, int file);
|
msvcrt_CrtSetReportFile_impl(PyObject *module, int type, int file);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int type;
|
int type;
|
||||||
int file;
|
int file;
|
||||||
long _return_value;
|
long _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CrtSetReportFile", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportFile",
|
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportFile",
|
||||||
&type, &file)) {
|
&type, &file)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -486,17 +470,13 @@ static long
|
||||||
msvcrt_CrtSetReportMode_impl(PyObject *module, int type, int mode);
|
msvcrt_CrtSetReportMode_impl(PyObject *module, int type, int mode);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
int type;
|
int type;
|
||||||
int mode;
|
int mode;
|
||||||
long _return_value;
|
long _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CrtSetReportMode", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportMode",
|
if (!_PyArg_ParseStack(args, nargs, "ii:CrtSetReportMode",
|
||||||
&type, &mode)) {
|
&type, &mode)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -589,4 +569,4 @@ exit:
|
||||||
#ifndef MSVCRT_SET_ERROR_MODE_METHODDEF
|
#ifndef MSVCRT_SET_ERROR_MODE_METHODDEF
|
||||||
#define MSVCRT_SET_ERROR_MODE_METHODDEF
|
#define MSVCRT_SET_ERROR_MODE_METHODDEF
|
||||||
#endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
|
#endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
|
||||||
/*[clinic end generated code: output=9e82abfdd357b0da input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=8e9e57c48c4defcc input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -77,7 +77,7 @@ PyDoc_STRVAR(winreg_HKEYType___exit____doc__,
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
#define WINREG_HKEYTYPE___EXIT___METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
winreg_HKEYType___exit___impl(PyHKEYObject *self, PyObject *exc_type,
|
winreg_HKEYType___exit___impl(PyHKEYObject *self, PyObject *exc_type,
|
||||||
|
@ -141,17 +141,13 @@ winreg_ConnectRegistry_impl(PyObject *module, Py_UNICODE *computer_name,
|
||||||
HKEY key);
|
HKEY key);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
Py_UNICODE *computer_name;
|
Py_UNICODE *computer_name;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
HKEY _return_value;
|
HKEY _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("ConnectRegistry", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "ZO&:ConnectRegistry",
|
if (!_PyArg_ParseStack(args, nargs, "ZO&:ConnectRegistry",
|
||||||
&computer_name, clinic_HKEY_converter, &key)) {
|
&computer_name, clinic_HKEY_converter, &key)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -192,17 +188,13 @@ static HKEY
|
||||||
winreg_CreateKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
winreg_CreateKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *sub_key;
|
Py_UNICODE *sub_key;
|
||||||
HKEY _return_value;
|
HKEY _return_value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("CreateKey", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&Z:CreateKey",
|
if (!_PyArg_ParseStack(args, nargs, "O&Z:CreateKey",
|
||||||
clinic_HKEY_converter, &key, &sub_key)) {
|
clinic_HKEY_converter, &key, &sub_key)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -243,7 +235,7 @@ PyDoc_STRVAR(winreg_CreateKeyEx__doc__,
|
||||||
"If the function fails, an OSError exception is raised.");
|
"If the function fails, an OSError exception is raised.");
|
||||||
|
|
||||||
#define WINREG_CREATEKEYEX_METHODDEF \
|
#define WINREG_CREATEKEYEX_METHODDEF \
|
||||||
{"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_FASTCALL, winreg_CreateKeyEx__doc__},
|
{"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_FASTCALL|METH_KEYWORDS, winreg_CreateKeyEx__doc__},
|
||||||
|
|
||||||
static HKEY
|
static HKEY
|
||||||
winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||||
|
@ -300,16 +292,12 @@ static PyObject *
|
||||||
winreg_DeleteKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
winreg_DeleteKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *sub_key;
|
Py_UNICODE *sub_key;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("DeleteKey", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&u:DeleteKey",
|
if (!_PyArg_ParseStack(args, nargs, "O&u:DeleteKey",
|
||||||
clinic_HKEY_converter, &key, &sub_key)) {
|
clinic_HKEY_converter, &key, &sub_key)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -346,7 +334,7 @@ PyDoc_STRVAR(winreg_DeleteKeyEx__doc__,
|
||||||
"On unsupported Windows versions, NotImplementedError is raised.");
|
"On unsupported Windows versions, NotImplementedError is raised.");
|
||||||
|
|
||||||
#define WINREG_DELETEKEYEX_METHODDEF \
|
#define WINREG_DELETEKEYEX_METHODDEF \
|
||||||
{"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_FASTCALL, winreg_DeleteKeyEx__doc__},
|
{"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_FASTCALL|METH_KEYWORDS, winreg_DeleteKeyEx__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||||
|
@ -391,16 +379,12 @@ static PyObject *
|
||||||
winreg_DeleteValue_impl(PyObject *module, HKEY key, Py_UNICODE *value);
|
winreg_DeleteValue_impl(PyObject *module, HKEY key, Py_UNICODE *value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *value;
|
Py_UNICODE *value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("DeleteValue", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&Z:DeleteValue",
|
if (!_PyArg_ParseStack(args, nargs, "O&Z:DeleteValue",
|
||||||
clinic_HKEY_converter, &key, &value)) {
|
clinic_HKEY_converter, &key, &value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -433,16 +417,12 @@ static PyObject *
|
||||||
winreg_EnumKey_impl(PyObject *module, HKEY key, int index);
|
winreg_EnumKey_impl(PyObject *module, HKEY key, int index);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("EnumKey", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumKey",
|
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumKey",
|
||||||
clinic_HKEY_converter, &key, &index)) {
|
clinic_HKEY_converter, &key, &index)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -484,16 +464,12 @@ static PyObject *
|
||||||
winreg_EnumValue_impl(PyObject *module, HKEY key, int index);
|
winreg_EnumValue_impl(PyObject *module, HKEY key, int index);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("EnumValue", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumValue",
|
if (!_PyArg_ParseStack(args, nargs, "O&i:EnumValue",
|
||||||
clinic_HKEY_converter, &key, &index)) {
|
clinic_HKEY_converter, &key, &index)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -607,17 +583,13 @@ winreg_LoadKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||||
Py_UNICODE *file_name);
|
Py_UNICODE *file_name);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *sub_key;
|
Py_UNICODE *sub_key;
|
||||||
Py_UNICODE *file_name;
|
Py_UNICODE *file_name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("LoadKey", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&uu:LoadKey",
|
if (!_PyArg_ParseStack(args, nargs, "O&uu:LoadKey",
|
||||||
clinic_HKEY_converter, &key, &sub_key, &file_name)) {
|
clinic_HKEY_converter, &key, &sub_key, &file_name)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -648,7 +620,7 @@ PyDoc_STRVAR(winreg_OpenKey__doc__,
|
||||||
"If the function fails, an OSError exception is raised.");
|
"If the function fails, an OSError exception is raised.");
|
||||||
|
|
||||||
#define WINREG_OPENKEY_METHODDEF \
|
#define WINREG_OPENKEY_METHODDEF \
|
||||||
{"OpenKey", (PyCFunction)winreg_OpenKey, METH_FASTCALL, winreg_OpenKey__doc__},
|
{"OpenKey", (PyCFunction)winreg_OpenKey, METH_FASTCALL|METH_KEYWORDS, winreg_OpenKey__doc__},
|
||||||
|
|
||||||
static HKEY
|
static HKEY
|
||||||
winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||||
|
@ -700,7 +672,7 @@ PyDoc_STRVAR(winreg_OpenKeyEx__doc__,
|
||||||
"If the function fails, an OSError exception is raised.");
|
"If the function fails, an OSError exception is raised.");
|
||||||
|
|
||||||
#define WINREG_OPENKEYEX_METHODDEF \
|
#define WINREG_OPENKEYEX_METHODDEF \
|
||||||
{"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_FASTCALL, winreg_OpenKeyEx__doc__},
|
{"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_FASTCALL|METH_KEYWORDS, winreg_OpenKeyEx__doc__},
|
||||||
|
|
||||||
static HKEY
|
static HKEY
|
||||||
winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||||
|
@ -795,16 +767,12 @@ static PyObject *
|
||||||
winreg_QueryValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
winreg_QueryValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *sub_key;
|
Py_UNICODE *sub_key;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("QueryValue", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValue",
|
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValue",
|
||||||
clinic_HKEY_converter, &key, &sub_key)) {
|
clinic_HKEY_converter, &key, &sub_key)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -838,16 +806,12 @@ static PyObject *
|
||||||
winreg_QueryValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *name);
|
winreg_QueryValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *name);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *name;
|
Py_UNICODE *name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("QueryValueEx", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValueEx",
|
if (!_PyArg_ParseStack(args, nargs, "O&Z:QueryValueEx",
|
||||||
clinic_HKEY_converter, &key, &name)) {
|
clinic_HKEY_converter, &key, &name)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -886,16 +850,12 @@ static PyObject *
|
||||||
winreg_SaveKey_impl(PyObject *module, HKEY key, Py_UNICODE *file_name);
|
winreg_SaveKey_impl(PyObject *module, HKEY key, Py_UNICODE *file_name);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
Py_UNICODE *file_name;
|
Py_UNICODE *file_name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("SaveKey", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&u:SaveKey",
|
if (!_PyArg_ParseStack(args, nargs, "O&u:SaveKey",
|
||||||
clinic_HKEY_converter, &key, &file_name)) {
|
clinic_HKEY_converter, &key, &file_name)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -941,7 +901,7 @@ winreg_SetValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||||
Py_ssize_clean_t value_length);
|
Py_ssize_clean_t value_length);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
|
@ -950,10 +910,6 @@ winreg_SetValue(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *k
|
||||||
Py_UNICODE *value;
|
Py_UNICODE *value;
|
||||||
Py_ssize_clean_t value_length;
|
Py_ssize_clean_t value_length;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("SetValue", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&Zku#:SetValue",
|
if (!_PyArg_ParseStack(args, nargs, "O&Zku#:SetValue",
|
||||||
clinic_HKEY_converter, &key, &sub_key, &type, &value, &value_length)) {
|
clinic_HKEY_converter, &key, &sub_key, &type, &value, &value_length)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1015,7 +971,7 @@ winreg_SetValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *value_name,
|
||||||
PyObject *reserved, DWORD type, PyObject *value);
|
PyObject *reserved, DWORD type, PyObject *value);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
|
@ -1024,10 +980,6 @@ winreg_SetValueEx(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
DWORD type;
|
DWORD type;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("SetValueEx", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O&ZOkO:SetValueEx",
|
if (!_PyArg_ParseStack(args, nargs, "O&ZOkO:SetValueEx",
|
||||||
clinic_HKEY_converter, &key, &value_name, &reserved, &type, &value)) {
|
clinic_HKEY_converter, &key, &value_name, &reserved, &type, &value)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1139,4 +1091,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=57f166c252c5ba7a input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=9f7991a8580bbd93 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -14,7 +14,7 @@ PyDoc_STRVAR(winsound_PlaySound__doc__,
|
||||||
" Flag values, ored together. See module documentation.");
|
" Flag values, ored together. See module documentation.");
|
||||||
|
|
||||||
#define WINSOUND_PLAYSOUND_METHODDEF \
|
#define WINSOUND_PLAYSOUND_METHODDEF \
|
||||||
{"PlaySound", (PyCFunction)winsound_PlaySound, METH_FASTCALL, winsound_PlaySound__doc__},
|
{"PlaySound", (PyCFunction)winsound_PlaySound, METH_FASTCALL|METH_KEYWORDS, winsound_PlaySound__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
winsound_PlaySound_impl(PyObject *module, PyObject *sound, int flags);
|
winsound_PlaySound_impl(PyObject *module, PyObject *sound, int flags);
|
||||||
|
@ -51,7 +51,7 @@ PyDoc_STRVAR(winsound_Beep__doc__,
|
||||||
" How long the sound should play, in milliseconds.");
|
" How long the sound should play, in milliseconds.");
|
||||||
|
|
||||||
#define WINSOUND_BEEP_METHODDEF \
|
#define WINSOUND_BEEP_METHODDEF \
|
||||||
{"Beep", (PyCFunction)winsound_Beep, METH_FASTCALL, winsound_Beep__doc__},
|
{"Beep", (PyCFunction)winsound_Beep, METH_FASTCALL|METH_KEYWORDS, winsound_Beep__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
winsound_Beep_impl(PyObject *module, int frequency, int duration);
|
winsound_Beep_impl(PyObject *module, int frequency, int duration);
|
||||||
|
@ -84,7 +84,7 @@ PyDoc_STRVAR(winsound_MessageBeep__doc__,
|
||||||
"x defaults to MB_OK.");
|
"x defaults to MB_OK.");
|
||||||
|
|
||||||
#define WINSOUND_MESSAGEBEEP_METHODDEF \
|
#define WINSOUND_MESSAGEBEEP_METHODDEF \
|
||||||
{"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_FASTCALL, winsound_MessageBeep__doc__},
|
{"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_FASTCALL|METH_KEYWORDS, winsound_MessageBeep__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
winsound_MessageBeep_impl(PyObject *module, int type);
|
winsound_MessageBeep_impl(PyObject *module, int type);
|
||||||
|
@ -106,4 +106,4 @@ winsound_MessageBeep(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObje
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=102a556c665a277d input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=d22e41446929d3ef input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -991,16 +991,11 @@ builtin_exec_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||||
|
|
||||||
/* AC: cannot convert yet, as needs PEP 457 group support in inspect */
|
/* AC: cannot convert yet, as needs PEP 457 group support in inspect */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
builtin_getattr(PyObject *self, PyObject **args, Py_ssize_t nargs,
|
builtin_getattr(PyObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
PyObject *kwnames)
|
|
||||||
{
|
{
|
||||||
PyObject *v, *result, *dflt = NULL;
|
PyObject *v, *result, *dflt = NULL;
|
||||||
PyObject *name;
|
PyObject *name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("getattr", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "getattr", 2, 3, &v, &name, &dflt))
|
if (!_PyArg_UnpackStack(args, nargs, "getattr", 2, 3, &v, &name, &dflt))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -1301,16 +1296,11 @@ PyTypeObject PyMap_Type = {
|
||||||
|
|
||||||
/* AC: cannot convert yet, as needs PEP 457 group support in inspect */
|
/* AC: cannot convert yet, as needs PEP 457 group support in inspect */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
builtin_next(PyObject *self, PyObject **args, Py_ssize_t nargs,
|
builtin_next(PyObject *self, PyObject **args, Py_ssize_t nargs)
|
||||||
PyObject *kwnames)
|
|
||||||
{
|
{
|
||||||
PyObject *it, *res;
|
PyObject *it, *res;
|
||||||
PyObject *def = NULL;
|
PyObject *def = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("next", kwnames)) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "next", 1, 2, &it, &def))
|
if (!_PyArg_UnpackStack(args, nargs, "next", 1, 2, &it, &def))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -2130,7 +2120,7 @@ PyDoc_STRVAR(builtin_sorted__doc__,
|
||||||
"reverse flag can be set to request the result in descending order.");
|
"reverse flag can be set to request the result in descending order.");
|
||||||
|
|
||||||
#define BUILTIN_SORTED_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
builtin_sorted(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
builtin_sorted(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
|
@ -2622,7 +2612,7 @@ PyTypeObject PyZip_Type = {
|
||||||
|
|
||||||
static PyMethodDef builtin_methods[] = {
|
static PyMethodDef builtin_methods[] = {
|
||||||
{"__build_class__", (PyCFunction)builtin___build_class__,
|
{"__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},
|
{"__import__", (PyCFunction)builtin___import__, METH_VARARGS | METH_KEYWORDS, import_doc},
|
||||||
BUILTIN_ABS_METHODDEF
|
BUILTIN_ABS_METHODDEF
|
||||||
BUILTIN_ALL_METHODDEF
|
BUILTIN_ALL_METHODDEF
|
||||||
|
@ -2656,7 +2646,7 @@ static PyMethodDef builtin_methods[] = {
|
||||||
BUILTIN_OCT_METHODDEF
|
BUILTIN_OCT_METHODDEF
|
||||||
BUILTIN_ORD_METHODDEF
|
BUILTIN_ORD_METHODDEF
|
||||||
BUILTIN_POW_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
|
BUILTIN_REPR_METHODDEF
|
||||||
{"round", (PyCFunction)builtin_round, METH_VARARGS | METH_KEYWORDS, round_doc},
|
{"round", (PyCFunction)builtin_round, METH_VARARGS | METH_KEYWORDS, round_doc},
|
||||||
BUILTIN_SETATTR_METHODDEF
|
BUILTIN_SETATTR_METHODDEF
|
||||||
|
|
|
@ -9,7 +9,7 @@ PyDoc_STRVAR(warnings_warn__doc__,
|
||||||
"Issue a warning, or maybe ignore it or raise an exception.");
|
"Issue a warning, or maybe ignore it or raise an exception.");
|
||||||
|
|
||||||
#define WARNINGS_WARN_METHODDEF \
|
#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 *
|
static PyObject *
|
||||||
warnings_warn_impl(PyObject *module, PyObject *message, PyObject *category,
|
warnings_warn_impl(PyObject *module, PyObject *message, PyObject *category,
|
||||||
|
@ -35,4 +35,4 @@ warnings_warn(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=acadf1788059034c input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=74b1a7d1ee41816d input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -88,16 +88,12 @@ static PyObject *
|
||||||
builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec);
|
builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
PyObject *format_spec = NULL;
|
PyObject *format_spec = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("format", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|U:format",
|
if (!_PyArg_ParseStack(args, nargs, "O|U:format",
|
||||||
&value, &format_spec)) {
|
&value, &format_spec)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -154,7 +150,7 @@ PyDoc_STRVAR(builtin_compile__doc__,
|
||||||
"in addition to any features explicitly specified.");
|
"in addition to any features explicitly specified.");
|
||||||
|
|
||||||
#define BUILTIN_COMPILE_METHODDEF \
|
#define BUILTIN_COMPILE_METHODDEF \
|
||||||
{"compile", (PyCFunction)builtin_compile, METH_FASTCALL, builtin_compile__doc__},
|
{"compile", (PyCFunction)builtin_compile, METH_FASTCALL|METH_KEYWORDS, builtin_compile__doc__},
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
|
builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
|
||||||
|
@ -197,16 +193,12 @@ static PyObject *
|
||||||
builtin_divmod_impl(PyObject *module, PyObject *x, PyObject *y);
|
builtin_divmod_impl(PyObject *module, PyObject *x, PyObject *y);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *x;
|
PyObject *x;
|
||||||
PyObject *y;
|
PyObject *y;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("divmod", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "divmod",
|
if (!_PyArg_UnpackStack(args, nargs, "divmod",
|
||||||
2, 2,
|
2, 2,
|
||||||
&x, &y)) {
|
&x, &y)) {
|
||||||
|
@ -238,17 +230,13 @@ builtin_eval_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||||
PyObject *locals);
|
PyObject *locals);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *source;
|
PyObject *source;
|
||||||
PyObject *globals = Py_None;
|
PyObject *globals = Py_None;
|
||||||
PyObject *locals = Py_None;
|
PyObject *locals = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("eval", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "eval",
|
if (!_PyArg_UnpackStack(args, nargs, "eval",
|
||||||
1, 3,
|
1, 3,
|
||||||
&source, &globals, &locals)) {
|
&source, &globals, &locals)) {
|
||||||
|
@ -280,17 +268,13 @@ builtin_exec_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||||
PyObject *locals);
|
PyObject *locals);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *source;
|
PyObject *source;
|
||||||
PyObject *globals = Py_None;
|
PyObject *globals = Py_None;
|
||||||
PyObject *locals = Py_None;
|
PyObject *locals = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("exec", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "exec",
|
if (!_PyArg_UnpackStack(args, nargs, "exec",
|
||||||
1, 3,
|
1, 3,
|
||||||
&source, &globals, &locals)) {
|
&source, &globals, &locals)) {
|
||||||
|
@ -338,16 +322,12 @@ static PyObject *
|
||||||
builtin_hasattr_impl(PyObject *module, PyObject *obj, PyObject *name);
|
builtin_hasattr_impl(PyObject *module, PyObject *obj, PyObject *name);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
PyObject *name;
|
PyObject *name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("hasattr", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "hasattr",
|
if (!_PyArg_UnpackStack(args, nargs, "hasattr",
|
||||||
2, 2,
|
2, 2,
|
||||||
&obj, &name)) {
|
&obj, &name)) {
|
||||||
|
@ -387,17 +367,13 @@ builtin_setattr_impl(PyObject *module, PyObject *obj, PyObject *name,
|
||||||
PyObject *value);
|
PyObject *value);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
PyObject *name;
|
PyObject *name;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("setattr", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "setattr",
|
if (!_PyArg_UnpackStack(args, nargs, "setattr",
|
||||||
3, 3,
|
3, 3,
|
||||||
&obj, &name, &value)) {
|
&obj, &name, &value)) {
|
||||||
|
@ -424,16 +400,12 @@ static PyObject *
|
||||||
builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name);
|
builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
PyObject *name;
|
PyObject *name;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("delattr", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "delattr",
|
if (!_PyArg_UnpackStack(args, nargs, "delattr",
|
||||||
2, 2,
|
2, 2,
|
||||||
&obj, &name)) {
|
&obj, &name)) {
|
||||||
|
@ -537,17 +509,13 @@ static PyObject *
|
||||||
builtin_pow_impl(PyObject *module, PyObject *x, PyObject *y, PyObject *z);
|
builtin_pow_impl(PyObject *module, PyObject *x, PyObject *y, PyObject *z);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *x;
|
PyObject *x;
|
||||||
PyObject *y;
|
PyObject *y;
|
||||||
PyObject *z = Py_None;
|
PyObject *z = Py_None;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("pow", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "pow",
|
if (!_PyArg_UnpackStack(args, nargs, "pow",
|
||||||
2, 3,
|
2, 3,
|
||||||
&x, &y, &z)) {
|
&x, &y, &z)) {
|
||||||
|
@ -578,15 +546,11 @@ static PyObject *
|
||||||
builtin_input_impl(PyObject *module, PyObject *prompt);
|
builtin_input_impl(PyObject *module, PyObject *prompt);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *prompt = NULL;
|
PyObject *prompt = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("input", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "input",
|
if (!_PyArg_UnpackStack(args, nargs, "input",
|
||||||
0, 1,
|
0, 1,
|
||||||
&prompt)) {
|
&prompt)) {
|
||||||
|
@ -626,16 +590,12 @@ static PyObject *
|
||||||
builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start);
|
builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *iterable;
|
PyObject *iterable;
|
||||||
PyObject *start = NULL;
|
PyObject *start = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("sum", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "sum",
|
if (!_PyArg_UnpackStack(args, nargs, "sum",
|
||||||
1, 2,
|
1, 2,
|
||||||
&iterable, &start)) {
|
&iterable, &start)) {
|
||||||
|
@ -665,16 +625,12 @@ builtin_isinstance_impl(PyObject *module, PyObject *obj,
|
||||||
PyObject *class_or_tuple);
|
PyObject *class_or_tuple);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
PyObject *class_or_tuple;
|
PyObject *class_or_tuple;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("isinstance", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "isinstance",
|
if (!_PyArg_UnpackStack(args, nargs, "isinstance",
|
||||||
2, 2,
|
2, 2,
|
||||||
&obj, &class_or_tuple)) {
|
&obj, &class_or_tuple)) {
|
||||||
|
@ -704,16 +660,12 @@ builtin_issubclass_impl(PyObject *module, PyObject *cls,
|
||||||
PyObject *class_or_tuple);
|
PyObject *class_or_tuple);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *cls;
|
PyObject *cls;
|
||||||
PyObject *class_or_tuple;
|
PyObject *class_or_tuple;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("issubclass", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "issubclass",
|
if (!_PyArg_UnpackStack(args, nargs, "issubclass",
|
||||||
2, 2,
|
2, 2,
|
||||||
&cls, &class_or_tuple)) {
|
&cls, &class_or_tuple)) {
|
||||||
|
@ -724,4 +676,4 @@ builtin_issubclass(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject
|
||||||
exit:
|
exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=e1a7417a7b33eeec input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=09752daa8cdd6ec7 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -82,16 +82,12 @@ _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code,
|
||||||
PyObject *path);
|
PyObject *path);
|
||||||
|
|
||||||
static PyObject *
|
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;
|
PyObject *return_value = NULL;
|
||||||
PyCodeObject *code;
|
PyCodeObject *code;
|
||||||
PyObject *path;
|
PyObject *path;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("_fix_co_filename", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O!U:_fix_co_filename",
|
if (!_PyArg_ParseStack(args, nargs, "O!U:_fix_co_filename",
|
||||||
&PyCode_Type, &code, &path)) {
|
&PyCode_Type, &code, &path)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -279,16 +275,12 @@ static PyObject *
|
||||||
_imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file);
|
_imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file);
|
||||||
|
|
||||||
static PyObject *
|
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 *return_value = NULL;
|
||||||
PyObject *spec;
|
PyObject *spec;
|
||||||
PyObject *file = NULL;
|
PyObject *file = NULL;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("create_dynamic", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "create_dynamic",
|
if (!_PyArg_UnpackStack(args, nargs, "create_dynamic",
|
||||||
1, 2,
|
1, 2,
|
||||||
&spec, &file)) {
|
&spec, &file)) {
|
||||||
|
@ -369,4 +361,4 @@ exit:
|
||||||
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
|
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
|
||||||
#define _IMP_EXEC_DYNAMIC_METHODDEF
|
#define _IMP_EXEC_DYNAMIC_METHODDEF
|
||||||
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
|
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
|
||||||
/*[clinic end generated code: output=b970357dbbe25ee4 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=d068dd493e513604 input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -27,17 +27,13 @@ marshal_dump_impl(PyObject *module, PyObject *value, PyObject *file,
|
||||||
int version);
|
int version);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
marshal_dump(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
marshal_dump(PyObject *module, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
PyObject *file;
|
PyObject *file;
|
||||||
int version = Py_MARSHAL_VERSION;
|
int version = Py_MARSHAL_VERSION;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("dump", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "OO|i:dump",
|
if (!_PyArg_ParseStack(args, nargs, "OO|i:dump",
|
||||||
&value, &file, &version)) {
|
&value, &file, &version)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -88,16 +84,12 @@ static PyObject *
|
||||||
marshal_dumps_impl(PyObject *module, PyObject *value, int version);
|
marshal_dumps_impl(PyObject *module, PyObject *value, int version);
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
marshal_dumps(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
marshal_dumps(PyObject *module, PyObject **args, Py_ssize_t nargs)
|
||||||
{
|
{
|
||||||
PyObject *return_value = NULL;
|
PyObject *return_value = NULL;
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
int version = Py_MARSHAL_VERSION;
|
int version = Py_MARSHAL_VERSION;
|
||||||
|
|
||||||
if (!_PyArg_NoStackKeywords("dumps", kwnames)) {
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "O|i:dumps",
|
if (!_PyArg_ParseStack(args, nargs, "O|i:dumps",
|
||||||
&value, &version)) {
|
&value, &version)) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -142,4 +134,4 @@ exit:
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
/*[clinic end generated code: output=7b147a648614af7e input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=15e284a34abfd26a input=a9049054013a1b77]*/
|
||||||
|
|
|
@ -709,6 +709,11 @@ def output_templates(self, f):
|
||||||
""")
|
""")
|
||||||
|
|
||||||
parser_prototype_fastcall = normalize_snippet("""
|
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 *
|
static PyObject *
|
||||||
{c_basename}({self_type}{self_name}, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
{c_basename}({self_type}{self_name}, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||||
""")
|
""")
|
||||||
|
@ -828,10 +833,6 @@ def insert_keywords(s):
|
||||||
parser_prototype = parser_prototype_fastcall
|
parser_prototype = parser_prototype_fastcall
|
||||||
|
|
||||||
parser_definition = parser_body(parser_prototype, normalize_snippet("""
|
parser_definition = parser_body(parser_prototype, normalize_snippet("""
|
||||||
if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{
|
|
||||||
goto exit;
|
|
||||||
}}
|
|
||||||
|
|
||||||
if (!_PyArg_UnpackStack(args, nargs, "{name}",
|
if (!_PyArg_UnpackStack(args, nargs, "{name}",
|
||||||
{unpack_min}, {unpack_max},
|
{unpack_min}, {unpack_max},
|
||||||
{parse_arguments})) {{
|
{parse_arguments})) {{
|
||||||
|
@ -859,10 +860,6 @@ def insert_keywords(s):
|
||||||
parser_prototype = parser_prototype_fastcall
|
parser_prototype = parser_prototype_fastcall
|
||||||
|
|
||||||
parser_definition = parser_body(parser_prototype, normalize_snippet("""
|
parser_definition = parser_body(parser_prototype, normalize_snippet("""
|
||||||
if ({self_type_check}!_PyArg_NoStackKeywords("{name}", kwnames)) {{
|
|
||||||
goto exit;
|
|
||||||
}}
|
|
||||||
|
|
||||||
if (!_PyArg_ParseStack(args, nargs, "{format_units}:{name}",
|
if (!_PyArg_ParseStack(args, nargs, "{format_units}:{name}",
|
||||||
{parse_arguments})) {{
|
{parse_arguments})) {{
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -883,9 +880,9 @@ def insert_keywords(s):
|
||||||
""", indent=4))
|
""", indent=4))
|
||||||
|
|
||||||
elif not new_or_init:
|
elif not new_or_init:
|
||||||
flags = "METH_FASTCALL"
|
flags = "METH_FASTCALL|METH_KEYWORDS"
|
||||||
|
|
||||||
parser_prototype = parser_prototype_fastcall
|
parser_prototype = parser_prototype_fastcall_keywords
|
||||||
|
|
||||||
body = normalize_snippet("""
|
body = normalize_snippet("""
|
||||||
if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
|
if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
|
||||||
|
|
Loading…
Reference in a new issue