cPickle error when caching data

Benedict Verheyen benedict.verheyen at gmail.com
Tue Aug 3 11:37:22 EDT 2010


On 3/08/2010 17:01, Peter Otten wrote:
<snip>
> You can only pickle instances of classes that are reachable by the import 
> system as only the qualified name of the class is stored, not the bytecode 
> to generate it. Move your class out of the function into the global module 
> scope and you should be OK.
> 
> Peter

Thanks Peter,

that solved the problem !

Regards,
Benedict




More information about the Python-list mailing list