Skip to content

Commit a10f1c8

Browse files
committed
Decorator
1 parent b0e4ffb commit a10f1c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def debug(func):
900900
def add(x, y):
901901
return x + y
902902
```
903-
* **Wraps is a helper decorator that copies metadata of function func() to function out().**
903+
* **Wraps is a helper decorator that copies the metadata of a passed function (func) to the function it is wrapping (out).**
904904
* **Without it `'add.__name__'` would return `'out'`.**
905905

906906
### LRU Cache

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@
875875

876876

877877
<ul>
878-
<li><strong>Wraps is a helper decorator that copies metadata of function func() to function out().</strong></li>
878+
<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>
879879
<li><strong>Without it <code class="python hljs"><span class="hljs-string">'add.__name__'</span></code> would return <code class="python hljs"><span class="hljs-string">'out'</span></code>.</strong></li>
880880
</ul>
881881
<div><h3 id="lrucache">LRU Cache</h3><p><strong>Decorator that caches function's return values. All function's arguments must be hashable.</strong></p><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> lru_cache

0 commit comments

Comments
 (0)