]> granicus.if.org Git - python/commitdiff
#18111: Add What's New entry for max/min default.
authorR David Murray <rdmurray@bitdance.com>
Fri, 28 Jun 2013 17:31:19 +0000 (13:31 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 28 Jun 2013 17:31:19 +0000 (13:31 -0400)
Doc/whatsnew/3.4.rst

index 22e60d9c40a6d568957094fd9c556c52e937f930..a00bc317013e2327c724d1aea9d4a19100802142 100644 (file)
@@ -140,6 +140,9 @@ Some smaller changes made to the core Python language are:
 * Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of
   :exc:`ImportError`) when it cannot find something.
 
+* :func:`min` and :func:`max` now accept a *default* argument that can be used
+  to specify the value they return if the iterable they are evaluating has no
+  elements.  Contributed by Julian Berman in :issue:`18111`.
 
 
 New Modules