6 Jan
2015
6 Jan
'15
4:47 p.m.
On Wed, Jan 7, 2015 at 3:46 AM, Chris Angelico
def count_by(x): n = 0 while True: n += x yield n
And thanks to the magic of sloppy editing, I just rewrote itertools.count(). In my own testing, there was a print call to show what the internal iterators were yielding, but that got left out, leaving this looking a little silly. Anyhow. ChrisA