Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def decorator(inner_function):
- def wrapper(*args, **kwargs):
- # New wrapper stuff
- inner_function(*args, **kwargs)
- # New wrapper stuff
- return inner_function(*args, **kwargs)
- return wrapper
- @decorator
- def decorated_function():
- pass
- decorated_function() # returns the decorated_function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement