[Python-ideas] Making min and max behave more like any and all

Arnaud Delobelle arnodel at gmail.com
Wed Nov 30 19:11:50 CET 2011


On Nov 30, 2011 5:31 PM, "Jakob Bowyer" <jkbbwr at gmail.com> wrote:
>
> 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.
> Shouldn't we allow either one of the two ideas?
>
> Either max/min take only iterable arguments.
> OR
> Allow any/all to use *args
>
> In the second case this becomes legal
>
> any(1 in a, 2 in b, 3 in c)

I'd use 'or' here.  For all, I'd use 'and'.

-- 
Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111130/6391bd9c/attachment.html>


More information about the Python-ideas mailing list