> Sounds reasonable to me. Always returning 0 may slow things down, but it 
> will certainly not violate Python's "axiom" that elements evaluating 
> equal must have equal hashes. And we talk here about the default, i.e., 
> all specialised (fast) hash implementations will still be available. 
>

Actually, 'return 0' is the only correct general implementation of a hash 
function when you do not know the __eq__ function. Anything different from 
it (except 'return 1') runs the risk of contradicting an equality test.

Nathann

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to