Skip to main content

bool

Standard library class internal.core.bool View source
class bool
@tuple
class bool
Constructors 2
__new__
__new__() -> bool
__new__
@overload
__new__(what, /) -> bool
Special methods 34
__repr__
__repr__(self: Self, /) -> str
__copy__
__copy__(self: Self) -> bool
__deepcopy__
__deepcopy__(self: Self) -> bool
__bool__
__bool__(self: Self, /) -> bool
__hash__
__hash__(self: Self, /) -> int
__add__
@commutative
__add__(self: Self, other: bool, /)
__add__(self: Self, b: float, /)
Added by internal.ops
__add__(self: Self, b: float128, /)
Added by internal.ops
__add__(self: Self, b: float32, /)
Added by internal.ops
__add__(self: Self, b: float16, /)
Added by internal.ops
__add__(self: Self, b: bfloat16, /)
Added by internal.ops
__add__(self: Self, b: Int, /)
Added by internal.ops
__add__(self: Self, b: UInt, /)
Added by internal.ops
__sub__
__sub__(self: Self, other: bool, /)
__sub__(self: Self, b: float, /)
Added by internal.ops
__sub__(self: Self, b: float128, /)
Added by internal.ops
__sub__(self: Self, b: float32, /)
Added by internal.ops
__sub__(self: Self, b: float16, /)
Added by internal.ops
__sub__(self: Self, b: bfloat16, /)
Added by internal.ops
__sub__(self: Self, b: Int, /)
Added by internal.ops
__sub__(self: Self, b: UInt, /)
Added by internal.ops
__mul__
@commutative
__mul__(self: Self, other: bool, /)
__mul__(self: Self, b: float, /)
Added by internal.ops
__mul__(self: Self, b: float128, /)
Added by internal.ops
__mul__(self: Self, b: float32, /)
Added by internal.ops
__mul__(self: Self, b: float16, /)
Added by internal.ops
__mul__(self: Self, b: bfloat16, /)
Added by internal.ops
__mul__(self: Self, b: Int, /)
Added by internal.ops
__mul__(self: Self, b: UInt, /)
Added by internal.ops
__lshift__
__lshift__(self: Self, other: bool, /)
__rshift__
__rshift__(self: Self, other: bool, /)
__floordiv__
__floordiv__(self: Self, other: bool, /)
__floordiv__(self: Self, b: float, /)
Added by internal.ops
__floordiv__(self: Self, b: float128, /)
Added by internal.ops
__floordiv__(self: Self, b: float32, /)
Added by internal.ops
__floordiv__(self: Self, b: float16, /)
Added by internal.ops
__floordiv__(self: Self, b: bfloat16, /)
Added by internal.ops
__floordiv__(self: Self, b: Int, /)
Added by internal.ops
__floordiv__(self: Self, b: UInt, /)
Added by internal.ops
__truediv__
__truediv__(self: Self, other: bool, /)
__truediv__(self: Self, b: float, /)
Added by internal.ops
__truediv__(self: Self, b: float128, /)
Added by internal.ops
__truediv__(self: Self, b: float32, /)
Added by internal.ops
__truediv__(self: Self, b: float16, /)
Added by internal.ops
__truediv__(self: Self, b: bfloat16, /)
Added by internal.ops
__truediv__(self: Self, b: Int, /)
Added by internal.ops
__truediv__(self: Self, b: UInt, /)
Added by internal.ops
__mod__
__mod__(self: Self, other: bool, /)
__mod__(self: Self, b: float, /)
Added by internal.ops
__mod__(self: Self, b: float128, /)
Added by internal.ops
__mod__(self: Self, b: float32, /)
Added by internal.ops
__mod__(self: Self, b: float16, /)
Added by internal.ops
__mod__(self: Self, b: bfloat16, /)
Added by internal.ops
__mod__(self: Self, b: Int, /)
Added by internal.ops
__mod__(self: Self, b: UInt, /)
Added by internal.ops
__divmod__
__divmod__(self: Self, other: bool, /)
__divmod__(self: Self, b: float, /)
Added by internal.ops
__divmod__(self: Self, b: float128, /)
Added by internal.ops
__divmod__(self: Self, b: float32, /)
Added by internal.ops
__divmod__(self: Self, b: float16, /)
Added by internal.ops
__divmod__(self: Self, b: bfloat16, /)
Added by internal.ops
__divmod__(self: Self, b: Int, /)
Added by internal.ops
__divmod__(self: Self, b: UInt, /)
Added by internal.ops
__pow__
__pow__(self: Self, other: bool, /)
__pow__(self: Self, b: float, /)
Added by internal.ops
__pow__(self: Self, b: float128, /)
Added by internal.ops
__pow__(self: Self, b: float32, /)
Added by internal.ops
__pow__(self: Self, b: float16, /)
Added by internal.ops
__pow__(self: Self, b: bfloat16, /)
Added by internal.ops
__pow__(self: Self, b: Int, /)
Added by internal.ops
__pow__(self: Self, b: UInt, /)
Added by internal.ops
__invert__
@pure @llvm
__invert__(self: Self, /) -> bool
%0 = trunc i8 %self to i1
%1 = xor i1 %0, true
%2 = zext i1 %1 to i8
ret i8 %2
__eq__
@pure @llvm
__eq__(self: Self, other: bool, /) -> bool
%0 = icmp eq i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__eq__(self: Self, b: float, /)
Added by internal.ops
__eq__(self: Self, b: float128, /)
Added by internal.ops
__eq__(self: Self, b: float32, /)
Added by internal.ops
__eq__(self: Self, b: float16, /)
Added by internal.ops
__eq__(self: Self, b: bfloat16, /)
Added by internal.ops
__eq__(self: Self, b: Int, /)
Added by internal.ops
__eq__(self: Self, b: UInt, /)
Added by internal.ops
__ne__
@pure @llvm
__ne__(self: Self, other: bool, /) -> bool
%0 = icmp ne i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ne__(self: Self, b: float, /)
Added by internal.ops
__ne__(self: Self, b: float128, /)
Added by internal.ops
__ne__(self: Self, b: float32, /)
Added by internal.ops
__ne__(self: Self, b: float16, /)
Added by internal.ops
__ne__(self: Self, b: bfloat16, /)
Added by internal.ops
__ne__(self: Self, b: Int, /)
Added by internal.ops
__ne__(self: Self, b: UInt, /)
Added by internal.ops
__lt__
@pure @llvm
__lt__(self: Self, other: bool, /) -> bool
%0 = icmp ult i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__lt__(self: Self, b: float, /)
Added by internal.ops
__lt__(self: Self, b: float128, /)
Added by internal.ops
__lt__(self: Self, b: float32, /)
Added by internal.ops
__lt__(self: Self, b: float16, /)
Added by internal.ops
__lt__(self: Self, b: bfloat16, /)
Added by internal.ops
__lt__(self: Self, b: Int, /)
Added by internal.ops
__lt__(self: Self, b: UInt, /)
Added by internal.ops
__gt__
@pure @llvm
__gt__(self: Self, other: bool, /) -> bool
%0 = icmp ugt i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__gt__(self: Self, b: float, /)
Added by internal.ops
__gt__(self: Self, b: float128, /)
Added by internal.ops
__gt__(self: Self, b: float32, /)
Added by internal.ops
__gt__(self: Self, b: float16, /)
Added by internal.ops
__gt__(self: Self, b: bfloat16, /)
Added by internal.ops
__gt__(self: Self, b: Int, /)
Added by internal.ops
__gt__(self: Self, b: UInt, /)
Added by internal.ops
__le__
@pure @llvm
__le__(self: Self, other: bool, /) -> bool
%0 = icmp ule i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__le__(self: Self, b: float, /)
Added by internal.ops
__le__(self: Self, b: float128, /)
Added by internal.ops
__le__(self: Self, b: float32, /)
Added by internal.ops
__le__(self: Self, b: float16, /)
Added by internal.ops
__le__(self: Self, b: bfloat16, /)
Added by internal.ops
__le__(self: Self, b: Int, /)
Added by internal.ops
__le__(self: Self, b: UInt, /)
Added by internal.ops
__ge__
@pure @llvm
__ge__(self: Self, other: bool, /) -> bool
%0 = icmp uge i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ge__(self: Self, b: float, /)
Added by internal.ops
__ge__(self: Self, b: float128, /)
Added by internal.ops
__ge__(self: Self, b: float32, /)
Added by internal.ops
__ge__(self: Self, b: float16, /)
Added by internal.ops
__ge__(self: Self, b: bfloat16, /)
Added by internal.ops
__ge__(self: Self, b: Int, /)
Added by internal.ops
__ge__(self: Self, b: UInt, /)
Added by internal.ops
__and__
@pure @commutative @associative @llvm
__and__(self: Self, other: bool, /) -> bool
%0 = and i8 %self, %other
ret i8 %0
__or__
@pure @commutative @associative @llvm
__or__(self: Self, other: bool, /) -> bool
%0 = or i8 %self, %other
ret i8 %0
__xor__
@pure @commutative @associative @llvm
__xor__(self: Self, other: bool, /) -> bool
%0 = xor i8 %self, %other
ret i8 %0
__int__
@pure @llvm
__int__(self: Self, /) -> int
%0 = zext i8 %self to i64
ret i64 %0
__float__
@pure @llvm
__float__(self: Self, /) -> float
%0 = uitofp i8 %self to double
ret double %0
__to_gpu__
__to_gpu__(self: Self, cache: AllocCache)
Added by internal.gpu
__from_gpu__
__from_gpu__(self: Self, other: bool)
Added by internal.gpu
__from_gpu_new__
__from_gpu_new__(other: bool)
Added by internal.gpu
__pickle__
__pickle__(self: Self, jar: Jar)
Added by pickle
__unpickle__
__unpickle__(jar: Jar) -> bool
Added by pickle
__to_py__
__to_py__(self: Self) -> cobj
__from_py__
__from_py__(b: cobj) -> bool