functools¶
functools.py - Tools for working with functions and callable objects
Functions¶
cmp_to_key(mycmp) |
Convert a cmp= function into a key= function |
reduce((function, sequence[, initial]) -> value) |
Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. |
total_ordering(cls) |
Class decorator that fills in missing ordering methods |
update_wrapper(wrapper, wrapped[, assigned, ...]) |
Update a wrapper function to look like the wrapped function |
wraps(wrapped[, assigned, updated]) |
Decorator factory to apply update_wrapper() to a wrapper function |