summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-06-25 05:43:02 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-06-25 05:43:02 (GMT)
commit4d6018fe4508ed8520d22edc14c54dc9a1782c9f (patch)
treeb614f993b9b7b8cba22a4009cf63a469c443a504 /Misc
parentd7a034bd7553719e554beea1746079ba72333015 (diff)
downloadcpython-4d6018fe4508ed8520d22edc14c54dc9a1782c9f.zip
cpython-4d6018fe4508ed8520d22edc14c54dc9a1782c9f.tar.gz
cpython-4d6018fe4508ed8520d22edc14c54dc9a1782c9f.tar.bz2
Issue 18111: Add a default argument to min() and max()
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 3ea542a..bc825dc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,10 @@ Core and Builtins
- Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
+- Issue #18111: The min() and max() functions now support a default argument
+ to be returned instead of raising a ValueError on an empty sequence.
+ (Contributed by Julian Berman.)
+
- Issue #18137: Detect integer overflow on precision in float.__format__()
and complex.__format__().