#7516: bug in pickling quotient module over pid
------------------------------+---------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.3.2
Component: linear algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Changes (by SimonKing):
* status: needs_review => needs_info
Comment:
If I understand the patch correctly, it violates a very essential
assumption about hash codes: The hash has to be the same for objects that
are equal. But with the patch, it may be possible that during unpickling
the hash "0" is returned, while afterwards a completely different value
is returned for ''the same'' object.
This is giving me headache. Isn't it be possible that things are put in
the wrong hash bucket?
Wouldn't it be a cleaner solution to ensure that self.!__basis is defined
during unpickling before the hash is requested?
Could you explain why your solution is correct?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7516#comment:3>
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.