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
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
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
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
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?
_
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...
>>
&
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