From 9a2f139ba0378fbdf3d68f13eebe2a0ca1f022b8 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 28 Jun 2013 13:31:19 -0400 Subject: [PATCH] #18111: Add What's New entry for max/min default. --- Doc/whatsnew/3.4.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 22e60d9c40a..a00bc317013 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -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