Skip to content

Commit 00489b3

Browse files
committed
Add '__iter__' to itertools.count.
1 parent a21de34 commit 00489b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/lib-graalpython/itertools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def __repr__(self):
125125
_repr += ', {}'.format(self._step)
126126
return _repr + ')'
127127

128+
def __iter__(self):
129+
return self
130+
128131

129132
class permutations():
130133
"""permutations(iterable[, r]) --> permutations object

0 commit comments

Comments
 (0)