[Python-ideas] 'default' keyword argument for max(), min()

Steven D'Aprano steve at pearwood.info
Wed Apr 15 19:55:18 CEST 2009


On Thu, 16 Apr 2009 03:20:15 am Adam Atlas wrote:
> I propose adding a "default" keyword argument to max() and min(),
> which provides a value to return in the event that an empty iterable
> is passed.

+1

-- 
Steven D'Aprano



More information about the Python-ideas mailing list