operator.ge()

operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equivalent to a < b, le(a, b) is equivalent to a <= b, eq(a, b) is equivalent to a == b, ne(a, b) is equivalent to a != b, gt(a, b) is equivalent to a > b and ge(a, b) is equivalent to a >= b. Note that these functions can return any value, which

operator.floordiv()

operator.floordiv(a, b) operator.__floordiv__(a, b) Return a // b.

operator.eq()

operator.eq(a, b) operator.ne(a, b) operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equivalent to a < b, le(a, b) is equivalent to a <= b, eq(a, b) is equivalent to a == b, ne(a, b) is equivalent to a != b, gt(a, b) is equivalent to a > b and ge(a, b) is equivalent to a >= b. Note that these fu

operator.delitem()

operator.delitem(a, b) operator.__delitem__(a, b) Remove the value of a at index b.

operator.countOf()

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

operator.contains()

operator.contains(a, b) operator.__contains__(a, b) Return the outcome of the test b in a. Note the reversed operands.

operator.concat()

operator.concat(a, b) operator.__concat__(a, b) Return a + b for a and b sequences.

operator.attrgetter()

operator.attrgetter(attr) operator.attrgetter(*attrs) Return a callable object that fetches attr from its operand. If more than one attribute is requested, returns a tuple of attributes. The attribute names can also contain dots. For example: After f = attrgetter('name'), the call f(b) returns b.name. After f = attrgetter('name', 'date'), the call f(b) returns (b.name, b.date). After f = attrgetter('name.first', 'name.last'), the call f(b) returns (b.name.first, b.name.last). Equivalent to:

operator.and_()

operator.and_(a, b) operator.__and__(a, b) Return the bitwise and of a and b.

operator.add()

operator.add(a, b) operator.__add__(a, b) Return a + b, for a and b numbers.