Message208813
| Author |
taleinat |
| Recipients |
Yury.Selivanov, brett.cannon, georg.brandl, jkloth, larry, pitrou, serhiy.storchaka, taleinat, vajrasky, zach.ware |
| Date |
2014年01月22日.14:39:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1390401572.08.0.18573685471.issue20341@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|