[issue5032] itertools.count step

Raymond Hettinger report at bugs.python.org
Thu Feb 12 12:56:50 CET 2009


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

Not too worried about either issue.  For the first, it makes the code
closer to its pure python equivalent.  Better to add some math module
function like Matlab's linspace().  It's hard to prevent people from
creating numerical mistakes no matter what.  Besides, now it's possible
to write:  count(Decimal('1.1'), Decimal('.1')) and get exact
progressions.  

For the second, the non-interruptability issue is everpresent throughout
the language.  If we get some uniform way of dealing with it, that would
be great (though I expect it will slow down lots of things we care about
and provide nearly zero benefit).  Since count() and repeat() came out
in itertools eons ago, there have been zero bug reports or user
complaints about the issue.  So, I'll take it as a non-issue.

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


More information about the Python-bugs-list mailing list