[issue20341] Argument Clinic: add "nullable ints"
Tal Einat
report at bugs.python.org
Wed Jan 22 15:39:32 CET 2014
Tal Einat added the comment:
Another bug in the patch:
In int_converter.__init__ in clinic.py, the patch adds:
if not isinstance(self.default, int):
fail("Illegal default value for int_converter")
This fails if no default is specified, e.g. for positional only argument. The condition should be:
if not (self.default is unspecified or isinstance(self.default, int)):
Ditto for Py_ssize_t_converter.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20341>
_______________________________________
More information about the Python-bugs-list
mailing list