#19016: A more naive sage.structure.element.__hash__
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-duplicate/invalid/wontfix
defect | Resolution:
Priority: | Merged in:
blocker | Reviewers:
Component: misc | Work issues:
Keywords: | Commit:
Authors: | 754dc5794a1a7004c8844cf7cfb64220957c36a5
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/19016 |
Dependencies: |
-------------------------+-------------------------------------------------
Changes (by vdelecroix):
* status: positive_review => needs_review
Comment:
As I said in [comment:9] I did remove the stupid `__hash__` from
`SageObject` (this is #18246). Not setting it to `0` but making it raise a
`TypeError`. It was not a tremendous effort even if I had to dig in things
that I do not understand.
I guess that the same strategy would also be good for `Element` and I
agree with Nils on this. The warning option proposed in [comment:4] by
Nathann looks also good to me because each time you program something you
will notice that you are doing something wrong. Could we try to found a
solution? This is annoying and I am willing to help to fix it.
--
Ticket URL: <http://trac.sagemath.org/ticket/19016#comment:13>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.