Plus, while pickling has many valid runtime use-cases, particularly
for IPC, and short-term preservation of objects between interpreter
sessions, it was *never* intended for long-term data storage, in part
precisely because it's directly tied to the source code that was used
to produce the pickle file. The only truly "correct" way to restore
old pickled objects is to do so with the same version of the software
the pickle was created with.
Plus, while pickling has many valid runtime use-cases, particularly
for IPC, and short-term preservation of objects between interpreter
sessions, it was *never* intended for long-term data storage, in part
precisely because it's directly tied to the source code that was used
to produce the pickle file. The only truly "correct" way to restore
old pickled objects is to do so with the same version of the software
the pickle was created with.
The TestSuite does a standard pickle/unpickle test for this and IMO every object should have at least one TestSuite(foo).run() test (typically in its __init__ method). We have also made it easier with git tags to revert to previous versions of Sage and then if you really need your object, you can translate it into key data in a file that you can then read back and reconstruct in the later version if the pickling has broken in the meantime. While this means we are less backwards compatible, I think this will not affect too many (any?) users, or at least make then not quit using Sage.
--
Best,
Travis
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
Since the pickle jar doesn't do what it is meant to do, I suggest to be
pragmatic and remove it completely.
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
The conventional wisdom is to avoid pickles in favour of JSON (the latter is a platform-independent human-parseable text, the former is some Python-only binary stuff).
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
Cheers,
Simon