functools — Higher-order functions and operations on callable objects — Python 3.11.16 documentation

docs.python.org

Table of Contents | Report a Bug | index | modules | Python | 3.11.16 Documentation | The Python Standard Library | Functional Programming Modules | operator — Standard operators as functions | itertools — Functions creating iterators for eff

Tin mới

itertools — Functions creating iterators for efficient looping

operator — Standard operators as functions

Python Module Index

3.11.16 Documentation

The Python Standard Library

Functional Programming Modules

How do I cache method calls?

Transform a method of a class into a property whose value is computed once and then cached as a normal attribute for the life of the instance. Similar to property(), with the addition of caching. Useful for expensive com

pickle: Convert Python objects to streams of bytes and back.

Transform a function into a single-dispatch generic function.

abstract base class

Transform a function into a single-dispatch generic function.

abc.abstractmethod

Transform a method into a single-dispatch generic function.

definition.__name__

partial objects are callable objects created by partial(). They have three read-only attributes:

1 1