This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients Yury.Selivanov, brett.cannon, georg.brandl, larry, serhiy.storchaka, taleinat, vajrasky, zach.ware
Date 2014-01-22.10:47:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390387626.67.0.631958940789.issue20341@psf.upfronthosting.co.za>
In-reply-to
Content
Then you disagree with Guido, who says that optional integer arguments without a viable publishable default value should accept None to mean "use the default value":

https://mail.python.org/pipermail/python-dev/2014-January/131673.html
https://mail.python.org/pipermail/python-dev/2014-January/131711.html

There are a fair number of places where people are abusing positional
parameters because they can't specify a good default.  I plan to put a stop to that, but first I need to give them a viable alternative.

In the specific case of itertools.repeat, I'm going to talk to the maintainer about what he wants to do.  The current behavior is too magic for Python and iiuc Guido regards it as a bug.  My guess is a default of None, as the author was deliberately preventing you from passing in -1.  But we shall see.
History
Date User Action Args
2014-01-22 10:47:06larrysetrecipients: + larry, brett.cannon, georg.brandl, taleinat, Yury.Selivanov, zach.ware, serhiy.storchaka, vajrasky
2014-01-22 10:47:06larrysetmessageid: <1390387626.67.0.631958940789.issue20341@psf.upfronthosting.co.za>
2014-01-22 10:47:06larrylinkissue20341 messages
2014-01-22 10:47:06larrycreate