Skip to main content

operator

Standard library Module View source
variable lt
lt = lambda a, b: (a < b)
variable le
le = lambda a, b: (a <= b)
variable eq
eq = lambda a, b: (a == b)
variable ne
ne = lambda a, b: (a != b)
variable gt
gt = lambda a, b: (a > b)
variable ge
ge = lambda a, b: (a >= b)
function not_
not_(a, /) -> bool
function truth
truth(a, /) -> bool
function is_
is_(a, b, /) -> bool
function is_not
is_not(a, b, /) -> bool
function abs
abs(a, /)
function add
add(a, b, /)
function and_
and_(a, b, /)
function floordiv
floordiv(a, b, /)
function index
index(a, /)
function inv
inv(a, /)
variable invert
invert = inv
function lshift
lshift(a, b, /)
function mod
mod(a, b, /)
function mul
mul(a, b, /)
function matmul
matmul(a, b, /)
function neg
neg(a, /)
function or_
or_(a, b, /)
function pos
pos(a, /)
function pow
pow(a, b, /)
function rshift
rshift(a, b, /)
function sub
sub(a, b, /)
function truediv
truediv(a, b, /)
function xor
xor(a, b, /)
function concat
concat(a, b, /)
function contains
contains(a, b, /)
function countOf
countOf(a, b, /)
function delitem
delitem(a, b, /)
function getitem
getitem(a, b, /)
function indexOf
indexOf(a, b, /)
function setitem
setitem(a, b, c, /)
function length_hint
length_hint(a, default = 0, /)
function attrgetter
attrgetter[attr: Literal[str]]()
function itemgetter
itemgetter(*items)
@overload
itemgetter[item: Literal[int]]()
function methodcaller
methodcaller[name: Literal[str]](*args, **kwargs)
function iadd
iadd(a, b, /)
function iand
iand(a, b, /)
function iconcat
iconcat(a, b, /)
function ifloordiv
ifloordiv(a, b, /)
function ilshift
ilshift(a, b, /)
function imod
imod(a, b, /)
function imul
imul(a, b, /)
function imatmul
imatmul(a, b, /)
function ior
ior(a, b, /)
function ipow
ipow(a, b, /)
function irshift
irshift(a, b, /)
function isub
isub(a, b, /)
function itruediv
itruediv(a, b, /)
function ixor
ixor(a, b, /)