Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5076740 commit b667087Copy full SHA for b667087
1 file changed
Doc/whatsnew/3.0.rst
@@ -160,6 +160,10 @@ changes to rarely used features.)
160
argument providing a comparison function. Use the *key* argument
161
instead. N.B. the *key* and *reverse* arguments are now "keyword-only".
162
163
+* The :meth:`__cmp__` special method is no longer supported. Use :meth:`__lt__`
164
+ for sorting, :meth:`__eq__` with :meth:`__hash__`, and other rich comparisons
165
+ as needed.
166
+
167
* ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior.
168
169
.. XXX move the next one to a later point, it's not a common stumbling block.
0 commit comments