Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def handler(stringa):
- def decorator(func):
- def funzione(*args, **kwargs):
- # faccio cose
- valore = func(*args, **kwargs)
- # oppure
- func(*args, **kwargs) # e basta
- # posso fare altre cose dopo
- return funzione
- return decorator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement