#5483: [with preliminary patch; not ready for review; request comments] Add
explain_pickle module; allow overriding class lookup for unpickling
-------------------------+--------------------------------------------------
Reporter: cwitty | Owner: cwitty
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.1
Component: misc | Keywords:
-------------------------+--------------------------------------------------
explain_pickle is an unpickler (intended to be totally compatible with the
cPickle unpickler) that produces Sage source code, which can then be
evaluated by sage_eval. This is useful to see exactly how the unpickle
process works. For example:
{{{
sage: explain_pickle(dumps(3))
pg_make_integer = unpickle_global('sage.rings.integer', 'make_integer')
pg_make_integer('3')
sage: explain_pickle(dumps(3), in_current_sage=True)
from sage.rings.integer import make_integer
make_integer('3')
}}}
I think the code works, but I'm not done writing documentation and
doctests.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5483>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---