by robot_no_421 · 3y ago · 0 comments
Why would you want "all" to produce results that are inconsistent with logic and mathematics? Consider this tautology, which is a result of De Morgan's laws: for any list L, we have that
all(L) == ~any([~x for x in L]).
In other words, if all([]) == False, then you would also logically need to accept that:
False == all([]) == ~any([~x for x in []]) == ~any([])
which means that we'd require any([]) == True. And that's definitely an illogical result.
No comments yet.