Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing uniqueness of parents when unpickling libsingular polynomial rings #11911

Closed
simon-king-jena opened this issue Oct 10, 2011 · 12 comments

Comments

@simon-king-jena
Copy link
Member

First session:

sage: P.<foo,bar> = PolynomialRing(QQ)
sage: save(P,'tmp')

Second session:

sage: Q = load('tmp.sobj')
sage: P.<foo,bar> = PolynomialRing(QQ)
sage: Q is P
False
sage: Q2 = load('tmp.sobj')
sage: Q2 is P
True
sage: Q2 is Q
False

That is fixed with the attached patch.

CC: @malb

Component: pickling

Keywords: unpickle libsingular unique parents

Author: Simon King

Reviewer: Martin Albrecht, Volker Braun

Merged: sage-4.8.alpha1

Issue created by migration from https://trac.sagemath.org/ticket/11911

@simon-king-jena
Copy link
Member Author

comment:2

Remark: I consider it a feature of my patch that old pickles of polynomial rings will automatically be transformed into a new format, should Sage ever drop libsingular.

@malb
Copy link
Member

malb commented Oct 10, 2011

Reviewer: Martin Albrecht

@malb
Copy link
Member

malb commented Oct 10, 2011

comment:3

Patch looks good so I'll give it a positive review. In case doctests break (didn't run any) it can be reverted.

@jdemeyer
Copy link

comment:4

Please fix this comment, I believe it contains at least three mistakes :-)

# If future Sage versions remove libsingular by a different implementation,
# the unpickled ring will be long the the new implementation.

@simon-king-jena
Copy link
Member Author

Preserve uniqueness of parents when unpickling a libsingular polynomial ring

@simon-king-jena
Copy link
Member Author

comment:7

Attachment: trac11911_libsingular_pickling.patch.gz

I replaced the patch. If you think the comment is now fine, then reinstate the positive review please.

@vbraun
Copy link
Member

vbraun commented Oct 26, 2011

Changed reviewer from Martin Albrecht to Martin Albrecht, Volker Braun

@vbraun
Copy link
Member

vbraun commented Oct 26, 2011

comment:8

That comment still won't win the Nobel price in literature, but at least I get what is meant. Applies fine to sage-4.7.2.rc0. Positive review.

@vbraun
Copy link
Member

vbraun commented Oct 26, 2011

Author: Simon King

@jdemeyer
Copy link

jdemeyer commented Nov 3, 2011

Merged: sage-4.7.3.alpha1

@jdemeyer
Copy link

jdemeyer commented Nov 3, 2011

Milestone sage-4.7.3 deleted

@jdemeyer jdemeyer removed this from the sage-4.8 milestone Nov 3, 2011
@jdemeyer
Copy link

jdemeyer commented Nov 3, 2011

Changed merged from sage-4.7.3.alpha1 to sage-4.8.alpha1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants