> On 2016-10-07 13:35, Johan S. H. Rosenkilde wrote: >> Should __hash__ be constant across Sage invocations? > > No. I see no reason why it should be.
I presume there's nothing in the Python spec that says so, since object() doesn't satisfy this. Is that what you mean? To me it seems obviously useful that this was satisfied across all mathematical objects. The decorator @func_persist -- which is totally broken right now because of this btw -- is an example of it. Also, I found this behaviour very surprising, and my guess is that others would as well - except the pure Python geeks perhaps. Would it be extremely difficult to attempt to satisfy this? 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.
