Browse Source

Decorator

pull/10/head
Jure Šorn 6 years ago
parent
commit
ccbcd544ae
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -608,7 +608,7 @@ def function_that_gets_passed_to_decorator():
```
### Debugger Example
**Decorator that prints function's name every time it gets called. Wraps is a helper decorator that copies metadata of function func() to function out(). Without it `'add.__name__'` would return `'out'`.**
**Decorator that prints function's name every time it gets called. Wraps is a helper decorator that copies metadata of function add() to function out(). Without it `'add.__name__'` would return `'out'`.**
```python
from functools import wraps

Loading…
Cancel
Save