![]() | if a: when is a evaluated as true? |
![]() | If a has __len__ or __nonzero__ and the return value is 0 or False, a evaluates to false |
![]() | Otherwise: a evaluates to true |
![]() | Implication: no implementation of __len__ or __nonzero__ implies that a evaluates to true!! |
![]() | while a follows (naturally) the same set-up |