[Python-ideas] Making min and max behave more like any and all
Jakob Bowyer
jkbbwr at gmail.com
Wed Nov 30 18:30:43 CET 2011
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)
In the first case this becomes illegal
max(1,2,3,4,5)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111130/3f8eac62/attachment.html>
More information about the Python-ideas
mailing list