Martin Manns <mma...@gmx.net> added the comment:

So could we replace

"If a larger range is needed, an alternate version can be crafted using the 
itertools module: islice(count(start, step), (stop-start+step-1)//step)."

by

"If a larger range is needed, an alternate version can be crafted using the 
itertools module: takewhile(lambda x: x<stop, (start+i*step for i in count()))."

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7721>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to