answered 12 years ago
See the Python documentation: http://docs.python.org/2/reference/datamodel.html#object.__cmp__ and http://docs.python.org/2/reference/datamodel.html#object.__eq__