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=\"he
The same way, just use its name.
>>> def g(x): ... g.r = 4 ... >>> g >>> g(3) >>> g.r 4