bpo-40036: Deleting duplicates in itertoolsmodule.c (GH-18958)

This commit is contained in:
AlphaHot 2020-03-24 01:14:39 +05:00 committed by GitHub
parent f393b2c588
commit 8dd1792c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 26 deletions

View File

@ -455,8 +455,6 @@ typedef struct {
PyObject *weakreflist; PyObject *weakreflist;
} teeobject; } teeobject;
static PyTypeObject teedataobject_type;
static PyObject * static PyObject *
teedataobject_newinternal(PyObject *it) teedataobject_newinternal(PyObject *it)
{ {
@ -682,8 +680,6 @@ static PyTypeObject teedataobject_type = {
}; };
static PyTypeObject tee_type;
static PyObject * static PyObject *
tee_next(teeobject *to) tee_next(teeobject *to)
{ {
@ -949,8 +945,6 @@ typedef struct {
int firstpass; int firstpass;
} cycleobject; } cycleobject;
static PyTypeObject cycle_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.cycle.__new__ itertools.cycle.__new__
@ -1147,8 +1141,6 @@ typedef struct {
long start; long start;
} dropwhileobject; } dropwhileobject;
static PyTypeObject dropwhile_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.dropwhile.__new__ itertools.dropwhile.__new__
@ -1314,8 +1306,6 @@ typedef struct {
long stop; long stop;
} takewhileobject; } takewhileobject;
static PyTypeObject takewhile_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.takewhile.__new__ itertools.takewhile.__new__
@ -1734,8 +1724,6 @@ typedef struct {
PyObject *it; PyObject *it;
} starmapobject; } starmapobject;
static PyTypeObject starmap_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.starmap.__new__ itertools.starmap.__new__
@ -2452,8 +2440,6 @@ typedef struct {
int stopped; /* set to 1 when the iterator is exhausted */ int stopped; /* set to 1 when the iterator is exhausted */
} combinationsobject; } combinationsobject;
static PyTypeObject combinations_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
@ -2786,8 +2772,6 @@ typedef struct {
int stopped; /* set to 1 when the cwr iterator is exhausted */ int stopped; /* set to 1 when the cwr iterator is exhausted */
} cwrobject; } cwrobject;
static PyTypeObject cwr_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.combinations_with_replacement.__new__ itertools.combinations_with_replacement.__new__
@ -3111,8 +3095,6 @@ typedef struct {
int stopped; /* set to 1 when the iterator is exhausted */ int stopped; /* set to 1 when the iterator is exhausted */
} permutationsobject; } permutationsobject;
static PyTypeObject permutations_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.permutations.__new__ itertools.permutations.__new__
@ -3472,8 +3454,6 @@ typedef struct {
PyObject *initial; PyObject *initial;
} accumulateobject; } accumulateobject;
static PyTypeObject accumulate_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.accumulate.__new__ itertools.accumulate.__new__
@ -3685,8 +3665,6 @@ typedef struct {
PyObject *selectors; PyObject *selectors;
} compressobject; } compressobject;
static PyTypeObject compress_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.compress.__new__ itertools.compress.__new__
@ -3845,8 +3823,6 @@ typedef struct {
PyObject *it; PyObject *it;
} filterfalseobject; } filterfalseobject;
static PyTypeObject filterfalse_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.filterfalse.__new__ 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.
Either long_cnt or long_step may be a float, Fraction, or Decimal. Either long_cnt or long_step may be a float, Fraction, or Decimal.
*/ */
static PyTypeObject count_type;
/*[clinic input] /*[clinic input]
@classmethod @classmethod
itertools.count.__new__ itertools.count.__new__