Vajrasky Kok added the comment:

How to handle this "problem" in Python maintenance releases (2.7, 3.3 and 
soon-to-be 3.4) is being discussed here: 
https://mail.python.org/pipermail/python-dev/2014-January/132101.html

In case, we are taking "backporting the full fix" road, here is the patch. I 
modified Larry's patch based on Serhiy's suggestion and bettered the error 
message, added test, and fixed the doc.

"Better error message" -> without my fix, repeat('a', times='cutecat') will 
throw "an integer is required". I make it as such it will throw "times must be 
integer or None."

----------
Added file: 
http://bugs.python.org/file33741/fix_itertools_repeat_negative_number_means_0_v4.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