diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-02-08 20:25:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 20:25:42 (GMT) |
commit | de3669ebcb33ca8e3373fbbaed646c5f287979b8 (patch) | |
tree | 77fbbffce890032112e045339561161a9838d8f4 /Modules/clinic/itertoolsmodule.c.h | |
parent | 616aec1ff148ba4570aa2d4b8ea420c715c206e4 (diff) | |
download | cpython-de3669ebcb33ca8e3373fbbaed646c5f287979b8.zip cpython-de3669ebcb33ca8e3373fbbaed646c5f287979b8.tar.gz cpython-de3669ebcb33ca8e3373fbbaed646c5f287979b8.tar.bz2 |
gh-101277: Port more itertools static types to heap types (#101304)
Add accumulate, compress, count, filterfalse, pairwise, product,
and zip_longest types to module state.
Diffstat (limited to 'Modules/clinic/itertoolsmodule.c.h')
-rw-r--r-- | Modules/clinic/itertoolsmodule.c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/clinic/itertoolsmodule.c.h b/Modules/clinic/itertoolsmodule.c.h index be44246..d15d5f0 100644 --- a/Modules/clinic/itertoolsmodule.c.h +++ b/Modules/clinic/itertoolsmodule.c.h @@ -102,7 +102,7 @@ static PyObject * pairwise_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; - PyTypeObject *base_tp = &pairwise_type; + PyTypeObject *base_tp = clinic_state()->pairwise_type; PyObject *iterable; if ((type == base_tp || type->tp_init == base_tp->tp_init) && @@ -821,7 +821,7 @@ static PyObject * itertools_filterfalse(PyTypeObject *type, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; - PyTypeObject *base_tp = &filterfalse_type; + PyTypeObject *base_tp = clinic_state()->filterfalse_type; PyObject *func; PyObject *seq; @@ -913,4 +913,4 @@ skip_optional_pos: exit: return return_value; } -/*[clinic end generated code: output=b86fcd99bd32145e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a08b58d7dac825da input=a9049054013a1b77]*/ |