We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b500c commit 8c981ebCopy full SHA for 8c981eb
README.md
@@ -557,7 +557,7 @@ from functools import wraps
557
def debug(func):
558
@wraps(func) # Needed for metadata copying (func name, ...).
559
def out(*args, **kwargs):
560
- print(func.__name__)
+ print(f'You called function {func.__name__!r}.')
561
return func(*args, **kwargs)
562
return out
563
@@ -566,6 +566,12 @@ def add(x, y):
566
return x + y
567
```
568
569
+```python
570
+>>> add(2, 2)
571
+You called function 'add'.
572
+4
573
+```
574
+
575
576
Class
577
-----
0 commit comments