Message224463
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 |
|
Date |
User |
Action |
Args |
2014-08-01 00:55:36 | rhettinger | set | recipients:
+ rhettinger, loewis, brett.cannon, georg.brandl, taleinat, larry, jkloth, Yury.Selivanov, zach.ware, serhiy.storchaka, vajrasky |
2014-08-01 00:55:35 | rhettinger | set | messageid: <1406854535.94.0.542003658657.issue20341@psf.upfronthosting.co.za> |
2014-08-01 00:55:35 | rhettinger | link | issue20341 messages |
2014-08-01 00:55:35 | rhettinger | create | |
|