Decorators
Fundamentals
def f1():
print("called f1")
f1
>> <function f1 at 0x008EEDF8>def f1():
print("called f1")
def f2(f):
f()
f2(f1)
>> called f1Example
Decorating Functions with Arguments
Returning values from decorators
Decorators with Arguments
Making a class a custom decorator
Equivalence
Last updated