itertools: count() has start arg default to 0.

pull/26/head
Paul Sokolovsky 2015-05-27 00:55:17 +03:00
rodzic c73650a250
commit 35ceeadc60
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
def count(start, step=1):
def count(start=0, step=1):
while True:
yield start
start += step