Message90355
>>> cc=c()
>>> bool(cc)
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
bool(cc)
TypeError: __bool__ should return bool or int, returned int
This is slightly jarring.
Adding ' 0 or 1' after 'or int' would be nice (and trivial).
Adding str(val) at the end after type(val) would be even nicer. |
|
Date |
User |
Action |
Args |
2009-07-09 21:21:30 | terry.reedy | set | recipients:
+ terry.reedy |
2009-07-09 21:21:29 | terry.reedy | set | messageid: <1247174489.94.0.772158623478.issue6453@psf.upfronthosting.co.za> |
2009-07-09 21:21:28 | terry.reedy | link | issue6453 messages |
2009-07-09 21:21:28 | terry.reedy | create | |
|