mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Use Python 3 instead of 3.0.
This commit is contained in:
parent
e5d3bc4700
commit
510ff54324
76 changed files with 125 additions and 125 deletions
|
@ -210,11 +210,11 @@ there was no :func:`sorted` builtin and :meth:`list.sort` took no keyword
|
|||
arguments. Instead, all of the Py2.x versions supported a *cmp* parameter to
|
||||
handle user specified comparison functions.
|
||||
|
||||
In Py3.0, the *cmp* parameter was removed entirely (as part of a larger effort to
|
||||
In Python 3, the *cmp* parameter was removed entirely (as part of a larger effort to
|
||||
simplify and unify the language, eliminating the conflict between rich
|
||||
comparisons and the :meth:`__cmp__` magic method).
|
||||
|
||||
In Py2.x, sort allowed an optional function which can be called for doing the
|
||||
In Python 2, :meth:`~list.sort` allowed an optional function which can be called for doing the
|
||||
comparisons. That function should take two arguments to be compared and then
|
||||
return a negative value for less-than, return zero if they are equal, or return
|
||||
a positive value for greater-than. For example, we can do:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue