We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b95cf commit 511359aCopy full SHA for 511359a
1 file changed
src/future/types/newobject.py
@@ -86,6 +86,8 @@ def __unicode__(self):
86
def __nonzero__(self):
87
if hasattr(self, '__bool__'):
88
return type(self).__bool__(self)
89
+ if hasattr(self, '__len__'):
90
+ return type(self).__len__(self)
91
# object has no __nonzero__ method
92
return True
93
0 commit comments