backports.functools-lru-cache

Backport of functools.lru_cache


License
MIT
Install
pip install backports.functools-lru-cache==1.1

Documentation

License

License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.

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