Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main_fuction(func):
- def wrapper_fuction():
- return func()
- return wrapper_fuction
- @main_fuction
- def message_fuc():
- print('this worked')
- #however adding this works
- x = main_fuction(message_fuc)
- x()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement