Saving functions in strings:
>>> def f(x): print "Hello, %s!"%x
...
>>> import fickle
>>> f = fickle.loads(fickle.dumps(f))
>>> f("Newman")
Hello, Newman!
Amit Aronovitch and Haggai Scolnicov
Currently only tested on Python 2.4 and up. But - originally written on Python 1.5.2 (check - maybe 2.0?), and was used extensively on 2.2.