[Python-ideas] "any" and "all" support multiple arguments

Louie Lu me at louie.lu
Tue Aug 1 09:01:30 EDT 2017


Hi all,

In "min" and "max" builtin-func, it support two style of args:

    min(...)
        min(iterable, *[, default=obj, key=func]) -> value
        min(arg1, arg2, *args, *[, key=func]) -> value

But for "any" and "all", it only support iterable:

    all(iterable, /)
        Return True if bool(x) is True for all values x in the iterable.


I'm not sure if this is discuss before, but can "any" and "all"
support like min_max "arg1, arg2, *args" style?


Thanks,
Louie.


More information about the Python-ideas mailing list