Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Getting back to Decorators

def make_pretty(func):
    def inner():
        print("I got decorated")
        func()
    return inner


def ordinary():
    print("I am ordinary")
 
PREVIOUS NEXT
Tagged: #Python #Getting #Decorators
ADD COMMENT
Topic
Name
2+6 =