Unpickling from strings

Marcin Chady marcin.chady at ntlworld.com
Tue Mar 13 19:04:39 EST 2001


> did you pickle classes defined in your main script (aka __main__),
> and then failed to unpickle them in another script?
> 
> don't do that.
> 
> (to solve this, move the classes to a common support module, and
> import it into the pickling script)
> 
> Cheers /F


Both pickling and unpickling is done by the same script, and the classes 
are defined in a separate module imported by that script.

Marcin




More information about the Python-list mailing list