消息 [159928]
>> 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 |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-05-04 11:48:22 | loewis | 修改 | recipients:
+ loewis, mark.dickinson, larry, eric.smith, serhiy.storchaka |
| 2012-05-04 11:48:22 | loewis | 链接 | issue14705 messages |
| 2012-05-04 11:48:22 | loewis | 创建 | |
|