Commit b6670874 authored by Georg Brandl's avatar Georg Brandl

#4372: add bullet point for __cmp__ removal.

parent 5076740d
......@@ -160,6 +160,10 @@ changes to rarely used features.)
argument providing a comparison function. Use the *key* argument
instead. N.B. the *key* and *reverse* arguments are now "keyword-only".
* The :meth:`__cmp__` special method is no longer supported. Use :meth:`__lt__`
for sorting, :meth:`__eq__` with :meth:`__hash__`, and other rich comparisons
as needed.
* ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior.
.. XXX move the next one to a later point, it's not a common stumbling block.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment