[IronPython] Compatibility issue pickling .NET object stored in PythonTuple

Jason McCampbell jmccampbell at enthought.com
Mon Nov 15 16:13:57 CET 2010


Hi Jeff,

I played with it a bit more and it does seem to be more specific that just
tuples. I'll try to make a repro and submit it. Or hopefully I'll just find
a silly mistake on my part. :)

Jason

On Thu, Nov 11, 2010 at 3:36 PM, Jeff Hardy <jdhardy at gmail.com> wrote:

> On Wed, Nov 10, 2010 at 4:24 PM, Jason McCampbell
> <jmccampbell at enthought.com> wrote:
> > Hi everyone,
> > We are working on porting the numpy package to IronPython and I am
> running
> > into an issue getting the output of cPickle to be compatible between
> CPython
> > and IronPython.  The issue appears to be that PythonTuple doesn't
> implement
> > __reduce__ and instead relies on .NET serialization.
>
> For a quick glance, it looks like cPickle has a special case for
> PythonTuple instances, so PythonTuple shouldn't need a __reduce__
> method. It's possible that the tuple elements are not being properly
> pickled, but I'm not familiar enough with the code to say for sure.
>
> Can you create a repro that doesn't depend on numpy and open an issue?
>
> - Jeff
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20101115/0d67ceb7/attachment.html>


More information about the Ironpython-users mailing list