On Tuesday, April 29, 2014 3:35:55 PM UTC+1, John Cremona wrote: > > On 29 April 2014 15:16, Volker Braun <[email protected] <javascript:>> > wrote: > > s and t are not the same expression, so they have different hashes. We > break > > Python by letting them compare equal. Hence the outcome of putting them > into > > sets is undefined. In CPython: if the hash collides, you get one > element. If > > the hash does not collide, you get two elements. > > That is a *very* unsatisfactory explanation for anyone actually > wanting to use Sage to do mathematics.
I agree. Always putting things in canonical form will be slow (there is no hook for "you are about to be put into a set") and/or not possible (fp group elements). -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
