This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: __cmp__ removal not in What's New
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, terry.reedy, vstinner
Priority: normal Keywords:

Created on 2008-11-20 22:48 by terry.reedy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg76147 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2008-11-20 22:48
What's New in Python 3.0/Common stumbling blocks
has this "builtin.sorted() and list.sort() no longer accept the cmp
argument providing a comparison function. Use the key argument instead."

Please add "The __cmp__ special method is no longer used for
comparisons. Use __lt__ for sorting, __eq__ with __hash__, and other
rich comparisons as needed."

People are already stumbling on this.
msg76183 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-11-21 14:16
Duplicate issue: see #2306. Anyway, an you write a patch?
History
Date User Action Args
2022-04-11 14:56:41adminsetgithub: 48622
2008-11-21 14:16:15vstinnersetmessages: - msg76181
2008-11-21 14:16:11vstinnersetmessages: + msg76183
2008-11-21 14:12:19vstinnersetstatus: open -> closed
nosy: + vstinner
resolution: duplicate
messages: + msg76181
2008-11-20 22:48:47terry.reedycreate