[issue1717] Get rid of more refercenes to __cmp__

Christian Heimes report at bugs.python.org
Sun Dec 7 17:11:24 CET 2008


Christian Heimes <lists at cheimes.de> added the comment:

Here is a longer patch that removes cmp, PyObject_Compare and cmpfunc.
The slots has been renamed to tp_reserved. If the slot is used by a type
an exception is raised to notify the user about possible issues.

Missing:
* fix unit tests
* add error checks to PyObject_RichCompareBool calls
* Remove/replace the last PyUnicode Compare ASII function

Added file: http://bugs.python.org/file12262/remove_cmp.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1717>
_______________________________________


More information about the Python-bugs-list mailing list