[Python-Dev] Negative times behaviour in itertools.repeat for Python maintenance releases (2.7, 3.3 and maybe 3.4)
Mark Lawrence
breamoreboy at yahoo.co.uk
Mon Jan 27 10:47:22 CET 2014
On 27/01/2014 01:52, Nick Coghlan wrote:
>
> In 3.5, that will be passing None, rather than -1. For those proposing
> to change the maintenance releases, how should a user relying on this
> misbehaviour update their code to handle it?
>
I'm -1 on using None. The code currently rejects anything except an
int. The docs don't say anything about using None, except in the
"equivalent to" section, which is also the only place where it looks as
if times can be a keyword argument.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-Dev
mailing list