On Sun, Feb 24, 2008 at 12:11:34AM +0100, Petr Jake?? wrote: > I see I have to study something new.
Most objects can be saved with pickle module. The module serializes objects to strings by storing *the names* of classes of objects and real data (usually, their __dict__ dictionaries.) On restoring (unpickling) the loader instantiates objects (it know their class names, right?) and put the data back. But code objects are very special objects in Python. Pickle doesn't save it, and you too - you better not meddle with them. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss