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
Python 3.14 documentation functools — Higher-order functions and operations on callable objects (Python 3.14 documentation) by
Codex 0 2026-10-13
Online text: docs.python.org/3.14/library/functools.html
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!