-
- Downloads
Results: add __bool__ method.
Python 3 dropped __nonzero__ in preference to __bool__. The code was only working because they fall back to __len__ if __bool__ is not implemented. This commit adds a __bool__ implementation that simply calls __nonzero__.
Please register or sign in to comment