operator.setitem(a, b, c) operator.__setitem__(a, b, c) Set the value of a at index b to c
operator.invert(obj) operator.__inv__(obj) operator.__invert__(obj) Return
operator.delitem(a, b) operator.__delitem__(a, b) Remove the value of a at index b.
itertools.takewhile(predicate, iterable) Make an iterator that returns elements from the iterable as long as the predicate is
operator.ior(a, b) operator.__ior__(a, b) a = ior(a, b) is equivalent to a |= b.
operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically
operator.isub(a, b) operator.__isub__(a, b) a = isub(a, b) is equivalent to a -= b.
itertools.groupby(iterable, key=None) Make an iterator that returns consecutive keys and groups from the iterable.
operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equivalent
classmethod chain.from_iterable(iterable) Alternate constructor for chain(). Gets chained inputs from a single
Page 13 of 13