Searched refs:__bool__ (Results 1 – 6 of 6) sorted by relevance
32 def __bool__(self): member in Point70 __nonzero__ = __bool__84 def __bool__(self): member in Circle118 __nonzero__ = __bool__
190 return self.__bool__()192 def __bool__(self): member in CallerStack225 return self.__bool__()227 def __bool__(self): member in Undefined
308 def __bool__(self): member in TokenStream310 __nonzero__ = __bool__ # py2
575 __ne__ = __bool__ = __hash__ = \
300 >>> s = "if hasattr(str, '__bool__'): pass"313 >>> s = "if hasattr(int, '__bool__'): pass"
344 Renames :meth:`__nonzero__` to :meth:`~object.__bool__`.