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 <[EMAIL PROTECTED]>:
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
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com