#9016: make morphisms hashable
---------------------------------+------------------------------------------
       Reporter:  burcin         |         Owner:  AlexGhitza                   
    
           Type:  defect         |        Status:  needs_review                 
    
       Priority:  major          |     Milestone:  sage-5.6                     
    
      Component:  categories     |    Resolution:                               
    
       Keywords:                 |   Work issues:                               
    
Report Upstream:  N/A            |     Reviewers:  Robert Bradshaw, Travis 
Scrimshaw
        Authors:  Burcin Erocal  |     Merged in:                               
    
   Dependencies:                 |      Stopgaps:                               
    
---------------------------------+------------------------------------------

Comment (by robertwb):

 I would argue that in general it's better to avoid having these arbitrary
 values for hash tested exactly at all (unless they're meaningful, like
 hash(ZZ(2)) == 2), especially when they vary for 64 and 32-bit values.
 Better to test it functionally, like

 {{{
 sage: { phi: 'yes' }[phi]
 'yes'
 }}}

 or even

 {{{
 hash(phi) == hash(phi)
 True
 hash(phi) == hash(rho)
 False
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9016#comment:20>
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.

Reply via email to