def talk(func):
def wrap(word):
print(word)
return wrap
@talk
def func(word):
pass
func('yeee')
>>> yeee
def talk(func):
print(word)
@talk
def func(word):
pass
func('yeee')
NameError: name 'word' is not defined