Message208773
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. |
|
Date |
User |
Action |
Args |
2014-01-22 10:47:06 | larry | set | recipients:
+ larry, brett.cannon, georg.brandl, taleinat, Yury.Selivanov, zach.ware, serhiy.storchaka, vajrasky |
2014-01-22 10:47:06 | larry | set | messageid: <1390387626.67.0.631958940789.issue20341@psf.upfronthosting.co.za> |
2014-01-22 10:47:06 | larry | link | issue20341 messages |
2014-01-22 10:47:06 | larry | create | |
|