#9016: make morphisms hashable
-----------------------------+----------------------------------------------
Reporter: burcin | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.4.3
Component: algebra | Keywords:
Author: Burcin Erocal | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Attached patch makes morphisms hashable in a reasonably fast way by
defining the following:
{{{
def __hash__(self):
return hash((self._domain, self._codomain))
}}}
It also defines specialized methods for
`sage.rings.morphism.RingHomomorphism_im_gens` and
`sage.rings.morphism.RingHomomorphism_from_quotient`.
While testing the code for `im_gens`, I fixed a confusing error message in
`sage.structure.sequence.Sequence.__hash__()` as well.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9016>
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.