MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / logged

Function logged

Solutions/7_1/logcall.py:3–8  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

1# logcall.py
2
3def logged(func):
4 print('Adding logging to', func.__name__)
5 def wrapper(*args,**kwargs):
6 print('Calling', func.__name__)
7 return func(*args,**kwargs)
8 return wrapper
9
10

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected