<li><strong>Wraps is a helper decorator that copies metadata of function add() to function out().</strong></li>
<li><strong>Wraps is a helper decorator that copies metadata of function func() to function out().</strong></li>
<li><strong>Without it <codeclass="python hljs"><spanclass="hljs-string">'add.__name__'</span></code> would return <codeclass="python hljs"><spanclass="hljs-string">'out'</span></code>.</strong></li>
</ul>
<div><h3id="lrucache">LRU Cache</h3><p><strong>Decorator that caches function's return values. All function's arguments must be hashable.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> functools <spanclass="hljs-keyword">import</span> lru_cache