[Python-checkins] cpython: #18111: Add What's New entry for max/min default.

r.david.murray python-checkins at python.org
Fri Jun 28 19:31:32 CEST 2013


http://hg.python.org/cpython/rev/34ff27b431d0
changeset:   84356:34ff27b431d0
user:        R David Murray <rdmurray at bitdance.com>
date:        Fri Jun 28 13:31:19 2013 -0400
summary:
  #18111: Add What's New entry for max/min default.

files:
  Doc/whatsnew/3.4.rst |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -140,6 +140,9 @@
 * 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list