Dear list,
The tutorial[1] mentions - More generally, Sage-specific special methods are usually named ``_meth_`` rather than ``__meth__``. For example, lots of classes implement ``_hash_`` which is used and cached by ``__hash__``. This seemed a bit strange to me, as I have seen __hash__ quite often. So I did $ git grep \\b_hash_\\b and found only a few handfuls of matches for _hash_. Also __hash__ of SageObject[2] is just hash(self.__repr__()), so there is no caching there. It seems to me that _hash_ is not used as suggested in the tutorial, or am I missing something? Regards, Erik Massop [1] src/doc/en/thematic_tutorials/tutorial-objects-and-classes.rst [2] src/sage/structure/sage_object.pyx -- 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.