#8120: UniqueRepresentation and hash value
-----------------------+----------------------------------------------------
Reporter: hivert | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone:
Component: algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
The documentation of {{{UniqueRepresentation}}} says
{{{
Similarly, the identity is used as hash function, which is also as
fast as it can get. However this means that the hash function may
change in between Sage sessions, or even within the same Sage
session (see below). Subclasses should overload :meth:`__hash__`
if this could be a problem.
}}}
But there is no implementation of {{{__hash__}}}.
I'm adding one.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8120>
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.