Functional Modules
functools
Tools for transforming callables, binding arguments, caching results, dispatching by type and preserving decorator metadata. Avoid caching functions with side effects that must run every call.
Formal Syntax & Structure
python syntaxpython
functoolsReturn Value
module
Module object available through import.
Working Example
Example Snippetpython
import functoolsf=functools.partial(pow,2)print(f(5))