Hi Clemens,

On 2014-09-20, Clemens Heuberger <[email protected]> wrote:
> So how do I work with dict and set in sage?

Carefully...
That's to say, if your dictionary keys all live in the same ring (or
other mathematical object) then it should be fine. The fact that in your
example two equal elements of the *same* ring have different hashes is
clearly a bug.
However, if you simultaneously use elements of totally different rings
as keys, then you ask for trouble.

Note that Sage provides some specialised dictionaries where objects are
always compared by identity, but I guess this won't be useful in your
application.

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 [email protected].
To post to this group, send email to [email protected].
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