[IronPython] Question about serialization
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?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users