[Python-Dev] Negative times behaviour in itertools.repeat for Python maintenance releases (2.7, 3.3 and maybe 3.4)

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Jan 27 05:28:09 CET 2014

On Sun, Jan 26, 2014 at 11:21 PM, Vajrasky Kok
<sky.kok at speaklikeaking.com>wrote:

> What about this alternative? Makes -1 consistently mean unlimited
> repetition and other negative numbers consistently mean zero
> repetitions


I think this idea was already rejected on the bug tracker.  It will be very
surprising if list(repeat(x, n)) would be different from [x] * n for
integer n.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140126/6d591b5b/attachment.html>

More information about the Python-Dev mailing list