You can assign arbitrary attributes to a plain function:
>>> def f():
... print f.something
...
>>> f.something = 'blah'
>>> f()
blah >>> def f():
... print f.something
...
>>> f.something = 'blah'
>>> f()
blahNo comments yet.