summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-06-28 17:31:19 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-06-28 17:31:19 (GMT)
commit9a2f139ba0378fbdf3d68f13eebe2a0ca1f022b8 (patch)
tree9fe62015aa54d659e6590fe0900ff0e9c3edb8c6 /Doc
parent37cfb0a920bd01ee81ce7bebebfe510d01d751d6 (diff)
downloadcpython-9a2f139ba0378fbdf3d68f13eebe2a0ca1f022b8.zip
cpython-9a2f139ba0378fbdf3d68f13eebe2a0ca1f022b8.tar.gz
cpython-9a2f139ba0378fbdf3d68f13eebe2a0ca1f022b8.tar.bz2
#18111: Add What's New entry for max/min default.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.4.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 22e60d9..a00bc31 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