> Python 3 only uses __eq__, __lt__, ..... Python also provides > functools.partial_ordering to synthesizing the remaining methods just from > __eq__ and __lt__. We either use that or write a similar decorator to also > deal with coercion. >
Perhaps we could follow suit with other parts of Sage and define _eq_, _lt_, etc., whose default raises an error and/or works like functools.partial_ordering and default __eq__, __lt__, etc. handle the coercion? At the very least, I'd like the partial ordering decorator with coercion. Best, Travis -- 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.