mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
Improve formatting for arg names in previous checkin.
This commit is contained in:
parent
a140101216
commit
2bc6b5eb36
1 changed files with 3 additions and 3 deletions
|
@ -141,9 +141,9 @@ changes to rarely used features.)
|
|||
:meth:`dict.values` return views instead of lists. For example, this no
|
||||
longer works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead.
|
||||
|
||||
* :meth:`builtin.sorted` and :meth:`list.sort` no longer accept the `cmp`
|
||||
argument providing a comparision function. Use the `key` argument
|
||||
instead. N.B. the `key` and `reverse` arguments are now "keyword-only".
|
||||
* :meth:`builtin.sorted` and :meth:`list.sort` no longer accept the *cmp*
|
||||
argument providing a comparision function. Use the *key* argument
|
||||
instead. N.B. the *key* and *reverse* arguments are now "keyword-only".
|
||||
|
||||
* ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue