Search notes:
Python: __bool__
If an
object
has a
__bool__
method, the value that this method returns determines if an object is considered to be
True
or
False
when
evaluated in a boolean context
.
See also
Other dunders
Index