[IronPython] deepcopy() in IRONPY

2008-03-26 Thread Bernd Viehmann
Hi, i am news to this list, so let me give a short introduction of myself. My name is Bernd from Aachen in Germany (near the border to Netherlands and Belgium) and I am working with python for some time now. In the moment i am shifting some of my old python-scripts into ironpython because the

Re: [IronPython] Question about serialization

2008-03-26 Thread Dino Viehland
Unfortunately I don't think what you want will work. If it's your .NET class you could implement __reduce_ex__ and I think we'd pick it up and use that for the serialization. But if it's some arbitrary framework class then you'll run into trouble. On IronPython 2.0 you could have an

Re: [IronPython] Question about serialization

2008-03-26 Thread Curt Hagenlocher
Ooh, I was unaware of __reduce__ and __reduce_ex__; thanks. On Wed, Mar 26, 2008 at 8:36 AM, Dino Viehland [EMAIL PROTECTED] wrote: Unfortunately I don't think what you want will work. If it's your .NET class you could implement __reduce_ex__ and I think we'd pick it up and use that for

Re: [IronPython] Question about serialization

2008-03-26 Thread Curt Hagenlocher
I was thinking that Python's lack of a global namespace for classes would be a problem -- but of course it's not because you'd actually be looking in the CLR namespace. So you could just fail the deserialize if the CLR base class doesn't already exist. It would still be nice to be able to

Re: [IronPython] Question about serialization

2008-03-26 Thread Sanghyeon Seo
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

Re: [IronPython] deepcopy() in IRONPY

2008-03-26 Thread Bernd Viehmann
Hi Curt, thanks, but I am not allowed to install FePy on the Production-Server. So I need a solution with pure IronPython ;-). Regards Bernd 2008/3/26, Curt Hagenlocher [EMAIL PROTECTED]: On Wed, Mar 26, 2008 at 8:04 AM, Bernd Viehmann [EMAIL PROTECTED] wrote: How can i use the