I just got bit by the following behaviour, which is surprising to me: sage: hash(GF(17)) -9223363248217694901
<Stop Sage and restart it> sage: hash(GF(17)) -9223363251803121333 So the hash of the very-much-the-same-every-time object GF(17) is not constant across invocations of Sage. Is this expected behaviour? Is this pervasive across UniqueRepresentation classes in Sage? The implementation of __hash__ on finite fields claims to be the same as for 'object'. Context: I was using the hashes of objects as keys for a storage of some experimental results. Sort of like the decorator @func_persist. This clearly doesn't work currently. Best, Johan -- 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 https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
