Issue4372
Created on 2008-11-20 22:48 by tjreedy, last changed 2008-11-21 14:16 by haypo.
|
msg76147 - (view) |
Author: Terry J. Reedy (tjreedy) |
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 (haypo) |
Date: 2008-11-21 14:16 |
|
Duplicate issue: see #2306. Anyway, an you write a patch?
|
|
| Date |
User |
Action |
Args |
| 2008-11-21 14:16:15 | haypo | set | messages:
- msg76181 |
| 2008-11-21 14:16:11 | haypo | set | messages:
+ msg76183 |
| 2008-11-21 14:12:19 | haypo | set | status: open -> closed nosy:
+ haypo resolution: duplicate messages:
+ msg76181 |
| 2008-11-20 22:48:47 | tjreedy | create | |
|