Vajrasky Kok added the comment:

Here is the updated patch. I try to be conservative here, preserving the 
current behaviour.

Negative times is same as zero.
Default value (which can be passed by omitting times) means unlimited.

I did not change the signature "repeat(object [,times])" because the only 
suitable default value, in my opinion, is "repeat(object [,times=<unlimited>])" 
which is impossible at the moment.

Well, let see what Raymond has anything to say about this.

----------
Added file: 
http://bugs.python.org/file33681/fix_itertools_repeat_negative_number_means_0_v3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19145>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to