is it possible to access the python function object attributes from within the function scope?
e.g. let\'s have
def f(): return
The answer is rather simple. Just use the fact name is looked for at execution time, not compile time:
def f(): return f._x f._x = "foo" f() # -> "foo"