Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Decorators in Python

def first(msg):
    print(msg)


first("Hello")

second = first
second("Hello")
Source by book.pythontips.com #
 
PREVIOUS NEXT
Tagged: #Decorators #Python
ADD COMMENT
Topic
Name
4+3 =