8000 bpo-40036: Deleting duplicates in itertoolsmodule.c (GH-18958) · python/cpython@8dd1792 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dd1792

Browse files
authored
bpo-40036: Deleting duplicates in itertoolsmodule.c (GH-18958)
1 parent f393b2c commit 8dd1792

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Modules/itertoolsmodule.c

Lines changed: 0 additions & 26 deletions
< 8000 td data-grid-cell-id="diff-dc27cbdf2b9f6e5236cade13cf301d352a7abd2a8b1988f2517d6f5b7a30c201-3113-3097-2" data-line-anchor="diff-dc27cbdf2b9f6e5236cade13cf301d352a7abd2a8b1988f2517d6f5b7a30c201R3097" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">

Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ typedef struct {
455455
PyObject *weakreflist;
456456
} teeobject;
457457

458-
static PyTypeObject teedataobject_type;
459-
460458
static PyObject *
461459
teedataobject_newinternal(PyObject *it)
462460
{
@@ -682,8 +680,6 @@ static PyTypeObject teedataobject_type = {
682680
};
683681

684682

685-
static PyTypeObject tee_type;
686-
687683
static PyObject *
688684
tee_next(teeobject *to)
689685
{
@@ -949,8 +945,6 @@ typedef struct {
949945
int firstpass;
950946
} cycleobject;
951947

952-
static PyTypeObject cycle_type;
953-
954948
/*[clinic input]
955949
@classmethod
956950
itertools.cycle.__new__
@@ -1147,8 +1141,6 @@ typedef struct {
11471141
long start;
11481142
} dropwhileobject;
11491143

1150-
static PyTypeObject dropwhile_type;
1151-
11521144
/*[clinic input]
11531145
@classmethod
11541146
itertools.dropwhile.__new__
@@ -1314,8 +1306,6 @@ typedef struct {
13141306
long stop;
13151307
} takewhileobject;
13161308

1317-
static PyTypeObject takewhile_type;
1318-
13191309
/*[clinic input]
13201310
@classmethod
13211311
itertools.takewhile.__new__
@@ -1734,8 +1724,6 @@ typedef struct {
17341724
PyObject *it;
17351725
} starmapobject;
17361726

1737-
static PyTypeObject starmap_type;
1738-
17391727
/*[clinic input]
17401728
@classmethod
17411729
itertools.starmap.__new__
@@ -2452,8 +2440,6 @@ typedef struct {
24522440
int stopped; /* set to 1 when the iterator is exhausted */
24532441
} combinationsobject;
24542442

2455-
static PyTypeObject combinations_type;
2456-
24572443

24582444
/*[clinic input]
24592445
@classmethod
@@ -2786,8 +2772,6 @@ typedef struct {
27862772
int stopped; /* set to 1 when the cwr iterator is exhausted */
27872773
} cwrobject;
27882774

2789-
static PyTypeObject cwr_type;
2790-
27912775
/*[clinic input]
27922776
@classmethod
27932777
itertools.combinations_with_replacement.__new__
@@ -3111,8 +3095,6 @@ typedef struct {
31113095
int stopped; /* set to 1 when the iterator is exhausted */
31123096
} permutationsobject;
31133097
3114-
static PyTypeObject permutations_type;
3115-
31163098
/*[clinic input]
31173099
@classmethod
31183100
itertools.permutations.__new__
@@ -3472,8 +3454,6 @@ typedef struct {
34723454
PyObject *initial;
34733455
} accumulateobject;
34743456

3475-
static PyTypeObject accumulate_type;
3476-
34773457
/*[clinic input]
34783458
@classmethod
34793459
itertools.accumulate.__new__
@@ -3685,8 +3665,6 @@ typedef struct {
36853665
PyObject *selectors;
36863666
} compressobject;
36873667

3688-
static PyTypeObject compress_type;
3689-
36903668
/*[clinic input]
36913669
@classmethod
36923670
itertools.compress.__new__
@@ -3845,8 +3823,6 @@ typedef struct {
38453823
PyObject *it;
38463824
} filterfalseobject;
38473825

3848-
static PyTypeObject filterfalse_type;
3849-
38503826
/*[clinic input]
38513827
@classmethod
38523828
itertools.filterfalse.__new__
@@ -4017,8 +3993,6 @@ slow_mode: when cnt == PY_SSIZE_T_MAX, step is not int(1), or cnt is a float.
40173993
Either long_cnt or long_step may be a float, Fraction, or Decimal.
40183994
*/
40193995

4020-
static PyTypeObject count_type;
4021-
40223996
/*[clinic input]
40233997
@classmethod
40243998
itertools.count.__new__

0 commit comments

Comments
 (0)
0