Am Sonntag, 26. Oktober 2014 18:59:10 UTC+1 schrieb Eric Gourgoulhon: > > > > Le dimanche 26 octobre 2014 16:02:30 UTC+1, Travis Scrimshaw a écrit : >> >> We need to get away from the __cmp__ to make the transition easier. Plus >> I would think most parents are not totally ordered. >> >> Yes most probably. > The task looks quite heavy: in src/sage: > find -name "*.py*" | xargs grep "def __cmp__" | wc -l > 375 > find -name "*.py*" | xargs grep "def __eq__" | wc -l > 185 > > Eric. >
A bit more information may be found in http://trac.sagemath.org/ticket/16537 "Python 3 preparation: Use "rich comparison" - std function cmp() is gone, method __cmp__ is ignored". IMHO transition to rich comparision as one of the bigger problems for the Python 3 migration! -- 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.