Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def decorator(func):
- def wrapper(*args,**kwargs):
- print('decoration begins')
- func(*args,**kwargs)
- print('decoration ends')
- return wrapper
- @decorator
- def func(func_parameter):
- print(func_parameter)
- #func = decorator(func)
- func('something')
Advertisement
Add Comment
Please, Sign In to add comment