Closed jamadden closed 7 years ago
It defines __nonzero__ to always be True for Python 2, but it doesn't define __bool__ for Python 3. So it falls back to __len__ and you get different behaviour (requests seem false when they shouldn't be).
__nonzero__
__bool__
__len__
Found testing zc.resourcelibrary with Python 3. https://github.com/zopefoundation/zc.resourcelibrary/pull/2
It defines
__nonzero__
to always be True for Python 2, but it doesn't define__bool__
for Python 3. So it falls back to__len__
and you get different behaviour (requests seem false when they shouldn't be).Found testing zc.resourcelibrary with Python 3. https://github.com/zopefoundation/zc.resourcelibrary/pull/2