[issue14705] Add 'bool' format character to PyArg_ParseTuple*
Martin v. Löwis
report at bugs.python.org
Fri May 4 13:48:22 CEST 2012
Martin v. Löwis <martin at v.loewis.de> added the comment:
>> I think there should be a test case also where PyObject_IsTrue gives an
>> exception (which I think can happen if __bool__ raises an exception).
>
> I'd be happy to add such a test, but I don't know of any types like
> that. Can anyone suggest one?
class NotTrue:
def __bool__(self):
raise NotImplementedError
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14705>
_______________________________________
More information about the Python-bugs-list
mailing list