<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 26, 2014 at 11:26 PM, Vajrasky Kok <span dir="ltr"><<a href="mailto:sky.kok@speaklikeaking.com" target="_blank">sky.kok@speaklikeaking.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":14a" style="overflow:hidden">In case we are taking "not backporting anything at all" road, what is<br>

the best fix for the document?<br>
<br>
Old<br>
>>> itertools.repeat.__doc__<br>
'repeat(object [,times]) -> create an iterator which returns the<br>
object\nfor the specified number of times.  If not specified, returns<br>
the object\nendlessly.'</div></blockquote></div><br>I would say no fix is needed for this doc because the signature suggests (correctly) that passing times by keyword is not supported.</div><div class="gmail_extra"><br>
</div><div class="gmail_extra">The following behavior further supports this interpretation.</div><div class="gmail_extra"><br></div><div class="gmail_extra">>>> from itertools import *</div><div class="gmail_extra">
>>> ''.join(repeat('a', times=-4))</div><div class="gmail_extra">Traceback (most recent call last):</div><div class="gmail_extra">  File "<stdin>", line 1, in <module></div><div class="gmail_extra">
OverflowError: long int too large to convert to int </div><div class="gmail_extra"><br></div><div class="gmail_extra">The ReST documentation may benefit from an addition of a warning that behavior of repeat() is "undefined" when times is passed by keyword. </div>
<div class="gmail_extra"><br></div></div>