Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def myDec(callback):
- # do whatever with callback, like:
- getattr(SomeThing, callback)()
- def decorator():
- @functools.wraps()
- def _wrapped():
- pass
- return _wrapped
- return decorator
- @myDec('LOLZ')
- def big_gays():
- pass
Add Comment
Please, Sign In to add comment