#5985: [with patch, needs review] cPickle: adds support for class pickling
customization
---------------------+------------------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: defect | Status: assigned
Priority: major | Milestone: sage-4.1.1
Component: misc | Keywords: cPickle, pickling classes
Reviewer: | Author:
Merged: |
---------------------+------------------------------------------------------
Changes (by nthiery):
* cc: craigcitro (added)
Comment:
Replying to [comment:14 nthiery]:
> Replying to [comment:13 craigcitro]:
> > I've rolled an spkg with the patch by Nicolas incorporated -- it's
here:
> >
> > http://sage.math.washington.edu/home/craigcitro/four-
one/python-2.6.2.p2.spkg
> >
> > It's not ready to be merged (I need to commit the changes in hg), but
I'd like Nicolas to confirm that it still works before I play with it too
much. Or, if there's an easy testcase, post that and I'll play with it.
> >
> > I should have more time to look at this tonight (and give it a review,
assuming it works).
>
> Thanks for working on this!
>
> The patch cPickle-5985-copy_reg_classes-submitted.patch includes a
fairly complete testsuite (see the addition to
sage/misc/test_cpickle_sage.py)
Oops, this testsuite used type.__new__(...) which apparently does not work
anymore with Python 2.6. I just rewrote the testsuite so that it does not
use this feature anymore. See attached patch.
Luckily enough, the real applications of this patch readily did not use
this feature anymore!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5985#comment:15>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---