Browse Source

Decorator

pull/10/head
Jure Šorn 5 years ago
parent
commit
94fa9d0e28
1 changed files with 2 additions and 0 deletions
  1. 2
      README.md

2
README.md

@ -642,6 +642,8 @@ CacheInfo(hits=28, misses=16, maxsize=None, currsize=16)
### Parametrized Decorator ### Parametrized Decorator
```python ```python
from functools import wraps
def debug(print_result=False): def debug(print_result=False):
def decorator(func): def decorator(func):
@wraps(func) @wraps(func)

Loading…
Cancel
Save