#11069: Don't use version of Sage in default pickle directory
------------------------------+---------------------------------------------
Reporter: jdemeyer | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: pickling | Keywords: pickle
Author: Jeroen Demeyer | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Description changed by jdemeyer:
Old description:
> I don't see any good reason why the version number of Sage is used when
> creating pickles using `sage.structure.sage_object.picklejar`
>
> {{{
> def picklejar(obj, dir=None):
> """
> Create pickled sobj of obj in dir, with name the absolute value of
> the hash of the pickle of obj. This is used in conjunction with
> sage.structure.sage_object.unpickle_all.
>
> To use this to test the whole Sage library right now, set the
> environment variable SAGE_PICKLE_JAR, which will make it so dumps
> will by default call picklejar with the default dir. Once you do
> that and doctest Sage, you'll find that the SAGE_ROOT/tmp/
> contains a bunch of pickled objects along with corresponding txt
> descriptions of them. Use the
> sage.structure.sage_object.unpickle_all to see if they unpickle
> later.
>
> INPUTS:
>
> - ``obj`` - a pickleable object
>
> - ``dir`` - a string or None; if None defaults to
> ``SAGE_ROOT/tmp/pickle_jar-version``
> }}}
New description:
I don't see any good reason why the version number of Sage is used when
creating pickles using `sage.structure.sage_object.picklejar`
{{{
def picklejar(obj, dir=None):
"""
Create pickled sobj of obj in dir, with name the absolute value of
the hash of the pickle of obj. This is used in conjunction with
sage.structure.sage_object.unpickle_all.
To use this to test the whole Sage library right now, set the
environment variable SAGE_PICKLE_JAR, which will make it so dumps
will by default call picklejar with the default dir. Once you do
that and doctest Sage, you'll find that the SAGE_ROOT/tmp/
contains a bunch of pickled objects along with corresponding txt
descriptions of them. Use the
sage.structure.sage_object.unpickle_all to see if they unpickle
later.
INPUTS:
- ``obj`` - a pickleable object
- ``dir`` - a string or None; if None defaults to
``SAGE_ROOT/tmp/pickle_jar-version``
}}}
See #10768 for a potentially conflicting ticket.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11069#comment:2>
Sage <http://www.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.