Message80609
Nice. Now I know that $e$ is a least transcendental number. But I
can't figure out why inserting this code into your file (and removing
some "itertools.") is difficult or unreadable. I maintain a personal
library of modules that I don't actually expect Guido to include in the
python standard library.
import itertools
def count(offset=0,stride=1):
for i in itertools.count():
yield offset+i*stride
# this version probably performs faster
def count(offset=0,stride=1):
while True:
yield offset
offset += stride |
|
Date |
User |
Action |
Args |
2009-01-27 02:48:03 | LambertDW | set | recipients:
+ LambertDW, rhettinger, steve21 |
2009-01-27 02:48:03 | LambertDW | set | messageid: <1233024483.62.0.503081369687.issue5032@psf.upfronthosting.co.za> |
2009-01-27 02:48:02 | LambertDW | link | issue5032 messages |
2009-01-27 02:48:02 | LambertDW | create | |
|