Browse Source

Decorator

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

6
README.md

@ -637,10 +637,10 @@ def fib(n):
``` ```
```python ```python
>>> [fib(n) for n in range(8)] >>> [fib(n) for n in range(10)]
[0, 1, 1, 2, 3, 5, 8, 13] [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
>>> fib.cache_info() >>> fib.cache_info()
CacheInfo(hits=12, misses=8, maxsize=None, currsize=8) CacheInfo(hits=16, misses=10, maxsize=None, currsize=10)
``` ```
### Parametrized Decorator ### Parametrized Decorator

|||||||
100:0
Loading…
Cancel
Save