Message76147
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. |
|
Date |
User |
Action |
Args |
2008-11-20 22:48:47 | terry.reedy | set | recipients:
+ terry.reedy, georg.brandl |
2008-11-20 22:48:47 | terry.reedy | set | messageid: <1227221327.85.0.608850654298.issue4372@psf.upfronthosting.co.za> |
2008-11-20 22:48:47 | terry.reedy | link | issue4372 messages |
2008-11-20 22:48:46 | terry.reedy | create | |
|