From the python docs:
all()
Return True if all elements of the iterable are true (or if the iterable is empty).
any()
Return True if any element of the iterable is true. If the iterable is empty, return False.
What's the logic behind making all([])
True? I would think (perhaps naively) that if you had an empty set or list or whatever, doing all()
on it should evaluate to False, since none of the items are True.