Two examples, what i consider (very simple) Python patterns (without fancy names though):
if __name__ == "__main__": ... def MyDecorator(func): def wrapper(...): def my_func(*args, **vargs): ... return my_func return wrapper
Two examples, what i consider (very simple) Python patterns (without fancy names though):