You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -882,7 +882,7 @@
882
882
883
883
884
884
<ul>
885
-
<li><strong>Wraps is a helper decorator that copies the metadata of a passed function (func) to the function it is wrapping (out).</strong></li>
885
+
<li><strong>Wraps is a helper decorator that copies the metadata of the passed function (func) to the function it is wrapping (out).</strong></li>
886
886
<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>
887
887
</ul>
888
888
<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
@@ -894,7 +894,7 @@
894
894
895
895
896
896
<ul>
897
-
<li><strong>Recursion depth is limited to 1000 by default. To increase it use <codeclass="python hljs"><spanclass="hljs-string">'sys.setrecursionlimit(<depth>)'</span></code>.</strong></li>
897
+
<li><strong>In CPython recursion depth is limited to 1000 by default. To increase it use <codeclass="python hljs"><spanclass="hljs-string">'sys.setrecursionlimit(<depth>)'</span></code>.</strong></li>
898
898
</ul>
899
899
<div><h3id="parametrizeddecorator">Parametrized Decorator</h3><p><strong>A decorator that accepts arguments and returns a normal decorator that accepts a function.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> functools <spanclass="hljs-keyword">import</span> wraps
0 commit comments