Hello all, I have some questions about Python comparison. Suppose I have a Python class representing objects under some ordering, and I want to implement <=, <, >=, >, ==, != comparisons on those objects. I remember hearing somewhere that the __cmp__ method was deprecated, but now that I am thinking about it I can't find anything confirming that. Is there any reason to implement the functions __eq__, __neq__, __gt__, __ge__, __lt__, __le__, instead of just one __cmp__? Including forward compatibility, being more Python-ic or anything else?
-- Robert M --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---