[issue20341] Argument Clinic: add "nullable ints"

Serhiy Storchaka report at bugs.python.org
Wed Jan 22 11:31:29 CET 2014


Serhiy Storchaka added the comment:

> I don't remember who specifically needed the nullable ints, so I just added a bunch of Derby contestants.

There are no much need in nullable ints, if they are needed, different use cases require different semantic. I don't think we can now write general converters which will cover different use cases. May be in 3.5, when behavior changes will be possible.

I know only one use case for nullable Py_ssize_t converter (and mmap_convert_ssize_t is much simpler). itertolls.repeat doesn't need it, because it shouldn't accept None.

Let defer this issue until most of code will be converted. Then we can accumulate statistic about nullable in converters.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20341>
_______________________________________


More information about the Python-bugs-list mailing list