Hi Vincent, On 2015-10-02, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > #19331: return 0 as a default hash for Element
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. And on second thought: Always returning 0 may actually speed things *up*! There will be more hash collisions. But determining the string representation to determine the hash can be very slow. Best regards, Simon -- 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.