[issue2306] Update What's new in 3.0
STINNER Victor
report at bugs.python.org
Fri Nov 21 15:12:25 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue2306>
_______________________________________
More information about the Python-bugs-list
mailing list