functools — Higher-order functions and operations on callable objects (Python 3.14 documentation)

ID: python-3-14-documentation/functools-higher-order-functions-and-operations-on-callable-objects-python-3-14-documentation

Cited passages: Python documentation, functools.cache and functools.lru_cache: thread-safe cache updates can still allow repeated evaluation before completion; Python documentation, functools.lru_cache: cache_clear and retention of argument and return-value references until eviction or clearing; Python documentation, functools.lru_cache: paragraph warning against functions with side effects, distinct mutable results, or impure time/random results.

New to topics? Read the docs here!