[PEAK] Pickable Components and Python Remote Objects

Phillip J. Eby pje at telecommunity.com
Tue Sep 20 13:09:01 EDT 2005


At 06:46 PM 9/20/2005 +0200, Sigve Tjora wrote:
>PicklingError: Can't pickle <class '__main__.A'>: it's not found as __main__.A

This has nothing to do with PEAK, as far as I can tell:

 >>> import pickle
 >>> from peak.api import *
 >>> class A(binding.Component): pass

 >>> a=A()
 >>> pickle.dumps(a)
'ccopy_reg\n_reconstructor\np0\n(c__main__\nA\np1\nc__builtin__\nobject\np2\nNtp3\nRp4\n.'
 >>>





More information about the PEAK mailing list