Mark Dickinson <dicki...@gmail.com> added the comment: Here's stage 2: remove uses of tp_compare from Objects and Modules, and replace uses of PyObject_Compare with PyObject_RichCompareBool. PyObject_Compare, cmp and friends still haven't been removed at this stage.
In detail: - for cell objects, method wrapper objects, PyTclObjects, and PyST_Objects (in the parser module), remove the defined tp_compare methods and implement tp_richcompare instead. - add tests for cell comparisons and PyST_Object comparisons; reenable tests for method wrapper comparisons. There are no tests for the PyTclObject comparisons. - remove tp_compare method from sets (all it did was emit an error message about the nonsensicality of doing order comparisons on sets) - in Objects/rangeobject.c and ElementTree, replace uses of PyObject_Compare with PyObject_RichCompareBool Added file: http://bugs.python.org/file12895/1717_stage2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1717> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com