<div dir="ltr"><div class="gmail_quote">On Wed, Apr 15, 2009 at 8:20 PM, Adam Atlas <span dir="ltr"><<a href="mailto:adam@atlas.st">adam@atlas.st</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

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.</blockquote><div><br>+1<br><br>This has precedent in reduce()'s "initial" keyword argument; note that min() and max() are really simple special cases of reduce().<br>

</div></div><br></div>