functools
E431921
Python standard library module
class decorator
decorator
decorator factory
descriptor
function
software library
functools is a Python standard library module that provides higher-order functions and tools for working with and manipulating functions, particularly for functional programming patterns.
All labels observed (1)
| Label | Occurrences |
|---|---|
| functools canonical | 1 |
Statements (53)
| Predicate | Object |
|---|---|
| instanceOf |
Python standard library module
ⓘ
class decorator ⓘ decorator ⓘ decorator ⓘ decorator factory ⓘ decorator factory ⓘ decorator factory ⓘ descriptor ⓘ descriptor ⓘ function ⓘ function ⓘ function ⓘ function ⓘ software library ⓘ |
| availableSince |
Python 2.5
ⓘ
Python 3.2 NERFINISHED ⓘ Python 3.4 ⓘ Python 3.8 ⓘ Python 3.9 NERFINISHED ⓘ |
| containsFunction |
functools.cache
ⓘ
functools.cached_property ⓘ functools.cmp_to_key ⓘ functools.lru_cache ⓘ functools.partial ⓘ functools.partialmethod ⓘ functools.reduce ⓘ functools.singledispatch ⓘ functools.singledispatchmethod ⓘ functools.total_ordering ⓘ functools.update_wrapper ⓘ functools.wraps ⓘ |
| introducedInVersion | Python 2.5 NERFINISHED ⓘ |
| partOf | Python standard library NERFINISHED ⓘ |
| programmingLanguage | Python ⓘ |
| provides | higher-order functions ⓘ |
| purpose |
cache attribute value on first access
ⓘ
convert old-style comparison function to key function ⓘ create partial function applications ⓘ cumulative function application to iterable ⓘ fill in missing rich comparison methods ⓘ memoize function results with LRU strategy ⓘ partial function application for methods ⓘ preserve metadata of wrapped function ⓘ single-dispatch generic functions ⓘ single-dispatch generic methods ⓘ unbounded function result caching ⓘ update wrapper function metadata ⓘ |
| returns | callable with some arguments fixed ⓘ |
| supportsParadigm | functional programming ⓘ |
| supportsParameter |
maxsize
ⓘ
typed ⓘ |
| typicalImport |
from functools import partial
ⓘ
import functools ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.