If I define a function:

def f(x):
    return x+3

I can later store objects as attributes of the function, like so:

f.thing="hello!"

I would like to do this from inside the code of the function itself. Problem is, how do I get a reference to the function from inside itself?

Edit
Report