[IronPython] Question about serialization

Sanghyeon Seo sanxiyn at gmail.com
Wed Mar 26 18:25:54 CET 2008


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

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list