Initial commit
This commit is contained in:
10
Solutions/7_1/logcall.py
Normal file
10
Solutions/7_1/logcall.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# logcall.py
|
||||
|
||||
def logged(func):
|
||||
print('Adding logging to', func.__name__)
|
||||
def wrapper(*args,**kwargs):
|
||||
print('Calling', func.__name__)
|
||||
return func(*args,**kwargs)
|
||||
return wrapper
|
||||
|
||||
|
||||
Reference in New Issue
Block a user