Browse Source

Decorator

pull/10/head
Jure Šorn 5 years ago
parent
commit
b216b56b33
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 ### Debugger Example
**Prints functions 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 func() to function out(). Without it `'add.__name__'` would return `'out'`.**
```python ```python
from functools import wraps from functools import wraps

Loading…
Cancel
Save