The Python functools module is determined for higher-order functions, this function accepts other functions as parameters and returns the given value. These higher-order functions, often referred to as decorators.
This module specifies different utilities for working with higher-order functions and callable objects. This function includes cumulative operations, selecting partial functions, and including functions for caching.
Hence, functools is one of the most useful libraries in Python. This library offers a collection of higher-order functions.
List of functoolsThe table below showcases values in this module, explains and elaborates on the functions within the functools module.
S.No Function & Description 1This function transforms multi-arguments functions into single-argument and creates a partial object with predefined arguments.
2This function creates a class method with predefined values.
3This function gives accumulated output values with an optional initializer.
4This function updates the wrapper function attributes to those of the original function.
5This decorator caches recent function for efficiency, with a default maxsize of 128.
6This function caches unlimited values.
7This function determines the class attribute in cached properties.
8This decorator automatically defines missing comparison methods if __eq__(), __gt__ and __ge__ methods.
9This decorator allows functions to behave differently based on argument types.
python_modules.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4