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

Function wrapper

Solutions/7_1/logcall.py:5–7  ·  view source on GitHub ↗
(*args,**kwargs)

Source from the content-addressed store, hash-verified

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