STINNER Victor <[EMAIL PROTECTED]> added the comment: Copy/paste of the issue #4372: --- 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. --- _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2306> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com