summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/itertoolsmodule.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/clinic/itertoolsmodule.c.h')
-rw-r--r--Modules/clinic/itertoolsmodule.c.h29
1 files changed, 19 insertions, 10 deletions
diff --git a/Modules/clinic/itertoolsmodule.c.h b/Modules/clinic/itertoolsmodule.c.h
index 82729ee..7f5abe6 100644
--- a/Modules/clinic/itertoolsmodule.c.h
+++ b/Modules/clinic/itertoolsmodule.c.h
@@ -19,7 +19,8 @@ pairwise_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *return_value = NULL;
PyObject *iterable;
- if ((type == &pairwise_type) &&
+ if ((type == &pairwise_type ||
+ type->tp_init == pairwise_type.tp_init) &&
!_PyArg_NoKeywords("pairwise", kwargs)) {
goto exit;
}
@@ -89,7 +90,8 @@ itertools__grouper(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *parent;
PyObject *tgtkey;
- if ((type == &_grouper_type) &&
+ if ((type == &_grouper_type ||
+ type->tp_init == _grouper_type.tp_init) &&
!_PyArg_NoKeywords("_grouper", kwargs)) {
goto exit;
}
@@ -126,7 +128,8 @@ itertools_teedataobject(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *values;
PyObject *next;
- if ((type == &teedataobject_type) &&
+ if ((type == &teedataobject_type ||
+ type->tp_init == teedataobject_type.tp_init) &&
!_PyArg_NoKeywords("teedataobject", kwargs)) {
goto exit;
}
@@ -161,7 +164,8 @@ itertools__tee(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *return_value = NULL;
PyObject *iterable;
- if ((type == &tee_type) &&
+ if ((type == &tee_type ||
+ type->tp_init == tee_type.tp_init) &&
!_PyArg_NoKeywords("_tee", kwargs)) {
goto exit;
}
@@ -235,7 +239,8 @@ itertools_cycle(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *return_value = NULL;
PyObject *iterable;
- if ((type == &cycle_type) &&
+ if ((type == &cycle_type ||
+ type->tp_init == cycle_type.tp_init) &&
!_PyArg_NoKeywords("cycle", kwargs)) {
goto exit;
}
@@ -267,7 +272,8 @@ itertools_dropwhile(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *func;
PyObject *seq;
- if ((type == &dropwhile_type) &&
+ if ((type == &dropwhile_type ||
+ type->tp_init == dropwhile_type.tp_init) &&
!_PyArg_NoKeywords("dropwhile", kwargs)) {
goto exit;
}
@@ -298,7 +304,8 @@ itertools_takewhile(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *func;
PyObject *seq;
- if ((type == &takewhile_type) &&
+ if ((type == &takewhile_type ||
+ type->tp_init == takewhile_type.tp_init) &&
!_PyArg_NoKeywords("takewhile", kwargs)) {
goto exit;
}
@@ -329,7 +336,8 @@ itertools_starmap(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *func;
PyObject *seq;
- if ((type == &starmap_type) &&
+ if ((type == &starmap_type ||
+ type->tp_init == starmap_type.tp_init) &&
!_PyArg_NoKeywords("starmap", kwargs)) {
goto exit;
}
@@ -593,7 +601,8 @@ itertools_filterfalse(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *func;
PyObject *seq;
- if ((type == &filterfalse_type) &&
+ if ((type == &filterfalse_type ||
+ type->tp_init == filterfalse_type.tp_init) &&
!_PyArg_NoKeywords("filterfalse", kwargs)) {
goto exit;
}
@@ -658,4 +667,4 @@ skip_optional_pos:
exit:
return return_value;
}
-/*[clinic end generated code: output=889c4afc3b13574f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=5364de2e143609b9 input=a9049054013a1b77]*/