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

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 17 04:25:27 CEST 2009


George Sakkis wrote:

> So the bottom line is, are most use cases of taking the min/max of an
> empty iterable closer to these that involve an intermediate
> DivisionByZero or to those that involve a missing key/attribute ?

In my experience, it's always been much more like
DivisionByZero -- either it shouldn't happen in the
first place or something radically different must
be done.

-- 
Greg



More information about the Python-ideas mailing list