px
pypx

backports.functools-lru-cache

v2.0.0

Backport of functools.lru_cache

7 KB Python 3.8+ py2.py3-none-anyMIT License14 deps Possibly Unmaintained
Diff
$ uv add backports.functools-lru-cache
tests Ruff Code style: Black

Backport of functools.lru_cache from Python 3.3 as published at ActiveState.

Usage

Consider using this technique for importing the 'lru_cache' function:

try:
    from functools import lru_cache
except ImportError:
    from backports.functools_lru_cache import lru_cache

For Enterprise

Available as part of the Tidelift Subscription.

This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.

Learn more.

Details

Version
2.0.0
License
MIT License
Python
>=3.8
Maintainer
Raymond Hettinger

Maintainers