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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20341>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to