[issue5032] itertools.count step

Raymond Hettinger report at bugs.python.org
Thu Jan 22 22:56:04 CET 2009


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

Am not too excited about this one.  As a heavy itertools user myself,
I've never had occasion to need a step argument.  As an implementer, I'm
aware that it would make the code for count() much more complex (because
of the internal optimizations and because step can be positive,
negative, or zero).

Have you had any real world use cases where count(start, step) would
have been the best solution?

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


More information about the Python-bugs-list mailing list