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

spir denis.spir at free.fr
Fri Apr 17 11:29:39 CEST 2009


Le Thu, 16 Apr 2009 17:06:17 -0400,
George Sakkis <george.sakkis at gmail.com> s'exprima ainsi:

> As an aside, it would be nice If min/max start raising a more narrow
> ValueError subtype, say EmptyIterableError, so that hacks such as
> checking the exception message are not necessary.

+1

------
la vita e estrany



More information about the Python-ideas mailing list