mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-34149: Behavior of the min/max with key=None (GH-8328)
Improve consistency with the signature for sorted(), heapq.nsmallest(), heapq.nlargest(), and itertools.groupby().
This commit is contained in:
parent
bde782bb59
commit
e22072fb11
5 changed files with 17 additions and 8 deletions
|
@ -869,6 +869,9 @@ are always available. They are listed here in alphabetical order.
|
|||
.. versionadded:: 3.4
|
||||
The *default* keyword-only argument.
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
The *key* can be ``None``.
|
||||
|
||||
|
||||
.. _func-memoryview:
|
||||
.. function:: memoryview(obj)
|
||||
|
@ -903,6 +906,9 @@ are always available. They are listed here in alphabetical order.
|
|||
.. versionadded:: 3.4
|
||||
The *default* keyword-only argument.
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
The *key* can be ``None``.
|
||||
|
||||
|
||||
.. function:: next(iterator[, default])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue