is it possible to access the python function object attributes from within the function scope?
e.g. let\'s have
def f(): return
As a workaround you could use a factory function to fix your scope:
def factory(): def inner(): print inner.x return inner >>> foo=factory() >>> foo.x=11 >>> foo() 11 >>> bar = foo >>> del foo >>> bar() 11