Issue 4372: cmp removal not in What's New (original) (raw)
Issue4372
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) * ![]() |
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) * ![]() |
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:41 | admin | set | github: 48622 |
2008-11-21 14:16:15 | vstinner | set | messages: - |
2008-11-21 14:16:11 | vstinner | set | messages: + |
2008-11-21 14:12:19 | vstinner | set | status: open -> closednosy: + vstinnerresolution: duplicatemessages: + |
2008-11-20 22:48:47 | terry.reedy | create |