Skip to content

Commit d4353b1

Browse files
committed
Debugger example
1 parent 8c981eb commit d4353b1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ from functools import wraps
557557
def debug(func):
558558
@wraps(func) # Needed for metadata copying (func name, ...).
559559
def out(*args, **kwargs):
560-
print(f'You called function {func.__name__!r}.')
560+
print(func.__name__)
561561
return func(*args, **kwargs)
562562
return out
563563

@@ -566,12 +566,6 @@ def add(x, y):
566566
return x + y
567567
```
568568

569-
```python
570-
>>> add(2, 2)
571-
You called function 'add'.
572-
4
573-
```
574-
575569

576570
Class
577571
-----

0 commit comments

Comments
 (0)