 <p>There is a backport of the <code>functools</code> module from <em>Python 3.2.3</em> for use with <em>Python 2.7</em> and <em>PyPy</em>: <a href="http://pypi.python.org/pypi/functools32">functools32</a>.</p> <p>It includes the <code>lru_cache</code> decorator.</p>