Message159928
| Author |
loewis |
| Recipients |
eric.smith, larry, loewis, mark.dickinson, serhiy.storchaka |
| Date |
2012年05月04日.11:48:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<20120504134821.Horde.CNbZBElCcOxPo8IFokCU3JA@webmail.df.eu> |
| In-reply-to |
<1336131954.9.0.584067080655.issue14705@psf.upfronthosting.co.za> |
| Content |
>> 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 |
|