-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
bug in pickling quotient module over pid #7516
Comments
comment:1
NOTE: This bug does not happen for Free modules over ZZ. It's only over a field where the issue happens.
|
Attachment: trac_7516.patch.gz |
comment:3
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? |
comment:8
Works for me. Add a doctest and close? |
comment:9
Replying to @simonbrandhorst:
Yep. Addendum - Also works for me. |
New commits:
|
Commit: |
comment:12
Once you put your real name as author, you can set a positive review. |
Reviewer: Travis Scrimshaw |
Author: Simon Brandhorst |
Changed branch from u/sbrandhorst/bug_in_pickling_quotient_module_over_pid to |
This is from the "report a problem" link in the notebook:
If you have a vector space, that is a quotient of a subspace of
another vector space, then after coercing elements into it, something
goes wrong in (un)pickling it.
Component: linear algebra
Author: Simon Brandhorst
Branch/Commit:
ea6a00b
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/7516
The text was updated successfully, but these errors were encountered: