Python operator Functions

EditRocket provides the following information on operator functions in the Python source code builder.

abs(o) -

add(a, b) -

and_(a, b) -

concat(a, b) -

contains(a, b) -

countOf(a, b) - Return the number of occurrences of b in a.

delitem(a, b) -

delslice(a, b, c) -

div(a, b) -

floordiv(a, b) -

getitem(a, b) -

getslice(a, b, c) -

iadd(a, b) -

iand(a, b) -

iconcat(a, b) -

idiv(a, b) -

ifloordiv(a, b) -

ilshift(a, b) -

imod(a, b) -

imul(a, b) -

index(a) -

indexOf(a, b) - Return the index of the first of occurrence of b in a.

inv(o) -

ior(a, b) -

ipow(a, b) -

irepeat(a, b) -

irshift(a, b) -

isCallable(o) - Deprecated since release 2.

isMappingType(o) - Returns true if the object o supports the mapping interface.

isNumberType(o) - Returns true if the object o represents a number.

isSequenceType(o) - Returns true if the object o supports the sequence protocol.

is_(a, b) - Return a is b.

is_not(a, b) - Return a is not b.

isub(a, b) -

itruediv(a, b) -

ixor(a, b) -

lshift(a, b) -

lt(a, b) -

mod(a, b) -

mul(a, b) -

neg(o) -

not_(o) -

or_(a, b) -

pos(o) -

pow(a, b) -

repeat(a, b) -

rshift(a, b) -

setitem(a, b, c) -

setslice(a, b, c, v) -

sub(a, b) -

truediv(a, b) -

truth(o) - Return True if o is true, and False otherwise.

xor(a, b) -