[Python-ideas] 'default' keyword argument for max(), min()
Aahz
aahz at pythoncraft.com
Thu Apr 16 21:34:58 CEST 2009
On Thu, Apr 16, 2009, Raymond Hettinger wrote:
>
> There has been almost zero discussion on use cases. There is no doubt
> that they exist, but no compelling cases have been presented (i.e.
> real-world code that is much improved with the extension). Likewise,
> there has been no discussion of alternatives (it is not hard to write
> an itertool that wraps an iterator with something that supplies a
> default when the iterator is empty).
>
> one-aspect-of-language-design-is-knowing-when-quit-ly yours,
+1
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
More information about the Python-ideas
mailing list