Re: [IronPython] Serializing IronPython classes

2008-10-08 Thread Serge
o we'll fix it sooner. > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Serge > *Sent:* Monday, October 06, 2008 9:15 PM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] Serializing IronPython classes > > > > Okay

Re: [IronPython] Serializing IronPython classes

2008-10-06 Thread Serge
at dispatches __reduce_ex__ > to the object version, eg: > > > > def __reduce_ex__(self, *args): > > return object.__reduce_ex__(self, *args) > > > > We should probably do that automatically for user-defined instances which > should be easy to do if this works for y

Re: [IronPython] Serializing IronPython classes

2008-10-06 Thread Serge
r that it would work well. > > > > So if you really want .NET serialization we can fix the bug – but you'll > need to implement ISerializable and figure out some way to deal getting the > class, module, and runtime information saved/restored yourself. > > > > *Fr

[IronPython] Serializing IronPython classes

2008-10-05 Thread Serge
ck of attributes, I am guessing I must do something else to enable serialization? Regards, Serge. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] Getting exception line number?

2008-09-29 Thread Serge
Hi all, I've been unable to figure out how to get the python line number/source span associated with an exception being thrown from IP2. The IronPython.Runtime.Exceptions don't seem to have an attibute to describe this. Can someone enlighten me please? _

Re: [IronPython] Importing System in IronPython 2 beta 5

2008-09-21 Thread Serge R
rks, but dir() >> seems to only show namespaces and not types, so import System.DateTime will >> fail. >> >> I'm now looking at sources for IronPythonConsole to see what the >> difference is, but if someone knows what I'm doing wrong, please tell... >> &

[IronPython] Importing System in IronPython 2 beta 5

2008-09-20 Thread Serge R
I am migrating from 1.1 and have been unable to import System.Math class. I took a look at what's actually been imported clr.AddReference("System") import System print dir(System) On IP2 I got a small list that didn't contain Math or many other classes. Am I referencing something wrong? IP2 List