Changes between Initial Version and Version 1 of Ticket #21840, comment 2
- Timestamp:
- Jan 21, 2014, 9:00:27 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21840, comment 2
initial v1 1 1 Just to comment why this worked before: 2 2 3 "If a class defines neither __len__() nor __nonzero__(), all its instances are considered true."3 "If a class defines neither `__len__()` nor `__nonzero__()`, all its instances are considered true." 4 4 5 5 that is from http://docs.python.org/2/reference/datamodel.html#object.__nonzero__