Duncan Booth <duncan.booth at invalid.invalid> writes: > dumped = dumps(air) > t = loads(dumped) > print t # works fine Hmm, well, that doesn't really pickle the function; it pickles a class instance that records where the class definition was and (on unpickling) imports that module. Maybe that is sufficient for this purpose.