First, we recall several concepts (lambda functions, callbacks, callables, functors, decorators) needed for the rest of the presentation.
Second, we present the “functools” module, which provides higher-order utilities dedicated to use callables (including caching, ordering, dispatching, wrapping).
Third, we give a quick overview of the “operator” module, which is commonly used to transform python operators to callables or to define elegant callbacks.