[Python-ideas] "any" and "all" support multiple arguments
Paul Moore
p.f.moore at gmail.com
Tue Aug 1 09:24:47 EDT 2017
On 1 August 2017 at 14:01, Louie Lu <me at louie.lu> wrote:
> I'm not sure if this is discuss before, but can "any" and "all"
> support like min_max "arg1, arg2, *args" style?
I don't see any particular reason why not, but is there a specific use
case for this or is it just a matter of consistency? Unlike max and
min, we already have operators in this case (and/or). I'd imagine that
if I had a use for any(a, b, c) I'd write it as a or b or c, and for
all(a, b, c) I'd write a and b and c.
Paul
More information about the Python-ideas
mailing list