functools.update_wrapper(wrapper, wrapped, assigned=WRAPPER_ASSIGNMENTS, updated=WRAPPER_UPDATES) Update a wrapper
operator.__imatmul__(a, b) a = imatmul(a, b) is equivalent to a @= b.
operator.lt(a, b) operator.le(a, b) operator.eq(a, b) operator
functools.cmp_to_key(func) Transform an old-style comparison function to a key function
operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically
operator.itruediv(a, b) operator.__itruediv__(a, b) a = itruediv(a, b) is equivalent to a /=
operator.rshift(a, b) operator.__rshift__(a, b) Return a shifted right by b.
operator.__inv__(obj) operator.__invert__(obj) Return the bitwise inverse of the number obj. This is equivalent
operator.__lshift__(a, b) Return a shifted left by b.
operator.__contains__(a, b) Return the outcome of the test b in a. Note the reversed operands.
Page 12 of 13