File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -781,6 +781,9 @@ are always available. They are listed here in alphabetical order.
781781 such as ``sorted(iterable, key=keyfunc, reverse=True)[0] `` and
782782 ``heapq.nlargest(1, iterable, key=keyfunc) ``.
783783
784+ .. versionadded :: 3.4
785+ The *default * keyword-only argument.
786+
784787
785788.. _func-memoryview :
786789.. function :: memoryview(obj)
@@ -812,6 +815,9 @@ are always available. They are listed here in alphabetical order.
812815 such as ``sorted(iterable, key=keyfunc)[0] `` and ``heapq.nsmallest(1,
813816 iterable, key=keyfunc) ``.
814817
818+ .. versionadded :: 3.4
819+ The *default * keyword-only argument.
820+
815821.. function :: next(iterator[, default])
816822
817823 Retrieve the next item from the *iterator * by calling its
Original file line number Diff line number Diff line change @@ -346,9 +346,10 @@ Some smaller changes made to the core Python language are:
346346
347347* Unicode database updated to UCD version 6.3.
348348
349- * :func: `min ` and :func: `max ` now accept a *default * argument that can be used
350- to specify the value they return if the iterable they are evaluating has no
351- elements. Contributed by Julian Berman in :issue: `18111 `.
349+ * :func: `min ` and :func: `max ` now accept a *default * keyword-only argument that
350+ can be used to specify the value they return if the iterable they are
351+ evaluating has no elements. (Contributed by Julian Berman in
352+ :issue: `18111 `.)
352353
353354* Module objects are now :mod: `weakref `'able.
354355
@@ -1805,6 +1806,12 @@ Changes in the Python API
18051806 similarly to ``__kwdefaults__ ``. (Contributed by Yury Selivanov in
18061807 :issue: `20625 `).
18071808
1809+ * Frozen packages used to have their ``__path__ `` set to the package name,
1810+ but this could cause the import system to do the wrong thing on submodule
1811+ imports if there was also a directory with the same name as the frozen
1812+ package. The ``__path__ `` for frozen packages is now set to ``[] ``
1813+ (:issue: `18065 `).
1814+
18081815
18091816Changes in the C API
18101817--------------------
You can’t perform that action at this time.
0 commit comments