[issue5032] itertools.count step

Raymond Hettinger report at bugs.python.org
Tue Jan 27 11:55:50 CET 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I've looked again at what it would take to update the C code and think
that the optimizations there make it difficult to add this feature
without adding a lot of code complexity and without slowing-down the
common case.  Also, I value the simplicity of the current API.

Suggest you use "range(start, sys.maxsize, step)" or just roll your own
generator (like Lambert's second version).

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5032>
_______________________________________


More information about the Python-bugs-list mailing list