<div dir="ltr"><div><br></div><div><div class="gmail_quote">On Wed, Nov 30, 2011 at 7:30 PM, Jakob Bowyer <span dir="ltr"><<a href="mailto:jkbbwr@gmail.com">jkbbwr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just had something pointed out to me in #python that min and max accept *args, I know for a fact that any and all only use a single iterable password.<br>Shouldn't we allow either one of the two ideas?<div><br></div>
</blockquote><div><br></div><div>any(True, False, True)</div><div>all(False, True, True)</div><div>max(1,2,3,4)</div><div>min(1,2,3,4)</div><div>sum(1,2,3,4)</div><div>list(1,2,3,4)</div><div>set(1,2,3,4)</div><div><br></div>
TOOWTDI would mean to allow only one argument in all of the above. Currently only max/min break the rule.<div><br></div><div>I'm +1 for making python consistent. And specifically would be +0 for allowing it all.</div>
<div><br></div><div>--Yuval</div><div><br></div><div><div>Btw even enumerate could have been a candidate though it already has a second argument.</div></div><div><br></div></div></div></div>