Native boolean operations#
Operations on bool
values that are listed here have fast,
optimized implementations.
Construction#
True
False
bool(obj)
Operators#
b1 and b2
b1 or b2
not b
Functions#
any(expr for ... in ...)
all(expr for ... in ...)
Operations on bool
values that are listed here have fast,
optimized implementations.
True
False
bool(obj)
b1 and b2
b1 or b2
not b
any(expr for ... in ...)
all(expr for ... in ...)