[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

Larry Hastings report at bugs.python.org
Sat Jan 25 14:20:23 CET 2014


Larry Hastings added the comment:

I think you've understood it.

The problem is, in order to deprecate the behavior, we first must provide the new behavior.  (That's official policy, in PEP 5.)  It's untenable to say "you'll have to stop using 'times=-1' in the future, but you can't use 'times=None' yet".  And right now I'm pretty sure we shouldn't add "times=None" for 3.4.  Therefore, we can't even deprecate the old behavior yet.

----------

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


More information about the Python-bugs-list mailing list