You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason none of the types in builtins.py have __nonzero__ (for Python 2) or __bool__ (for Python 3) defined on them? Some of them, like int definitely have a method defined. Or is this just a missing function?
The text was updated successfully, but these errors were encountered:
afrieder
changed the title
__nonzero__ and __bool__
__nonzero__ and __bool__ in builtins
Jan 20, 2017
Is there any reason none of the types in builtins.py have
__nonzero__
(for Python 2) or__bool__
(for Python 3) defined on them? Some of them, likeint
definitely have a method defined. Or is this just a missing function?The text was updated successfully, but these errors were encountered: