[IronPython] Question about serialization
Paul Turbett
sls at iinet.net.au
Thu Mar 27 05:10:45 PDT 2008
Thanks for the suggestion, unfortunately, again, no dice. It seems there
is no way to serialize an IP object that derives from a .NET base class.
Even though the base class is marked as serializable, I still get an
error about the derived class not being marked as serializable when I
use the fepy pickle.
I'd be interested to trying using the DLR hosting mechanism...does
anybody know of any docs about upgrading from IP 1.x to IP 2 script hosting?
Thanks, Paul
Sanghyeon Seo wrote:
> 2008/3/26, Paul Turbett <sls at iinet.net.au>:
>
>> It seems that whilst serializing .NET classes is trivial, and serializing
>> python classes is trivial, serializing something that touches both is
>> proving quite difficult.
>>
>> Any further suggestions gratefully received!
>>
>
> I suggest using copy_reg to register .NET class to Python pickle mechanism.
> See: http://docs.python.org/lib/module-copyreg.html
>
> I actually implemented this back in the last year.
> http://lists.ironpython.com/pipermail/users-ironpython.com/2007-February/004509.html
> http://fepy.svn.sourceforge.net/svnroot/fepy/trunk/fepy/pickle.py
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080327/86ef8b8a/attachment.html
More information about the Users
mailing list