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 rhettinger
Recipients Yury.Selivanov, brett.cannon, georg.brandl, jkloth, larry, loewis, rhettinger, serhiy.storchaka, taleinat, vajrasky, zach.ware
Date 2014-08-01.00:55:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406854535.94.0.542003658657.issue20341@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, I agree with Antoine that Nullable Int is a misnomer.

Also, I don't buy into this mission to change signatures for optional ints into int-or-none.   In particular, itertools.repeat() is fine as-is.  Optional int APIs have been around for a long time, they work fine, and they really don't need to be changed.  AFAICT, there is no real issue here that warrants changes to existing APIs.


>>> s = [10, 20, 30]
>>> s.pop(None)
Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    s.pop(None)
TypeError: 'NoneType' object cannot be interpreted as an integer


>>> int('42', None)
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    int('42', None)
TypeError: 'NoneType' object cannot be interpreted as an integer
History
Date User Action Args
2014-08-01 00:55:36rhettingersetrecipients: + rhettinger, loewis, brett.cannon, georg.brandl, taleinat, larry, jkloth, Yury.Selivanov, zach.ware, serhiy.storchaka, vajrasky
2014-08-01 00:55:35rhettingersetmessageid: <1406854535.94.0.542003658657.issue20341@psf.upfronthosting.co.za>
2014-08-01 00:55:35rhettingerlinkissue20341 messages
2014-08-01 00:55:35rhettingercreate