Why does this not work? How can I make it work? That is, how can I make gu accessible inside my decorated function?
def decorate(f):
def new_f():
def gu():
pass
f()
return new_f
@decorate
def fu():
gu()
fu()
Do I need to add gu to a dictionary of defined functions somehow? Or can I add gu to the local namespace of f before calling it?