any() and all() on empty list?

Paul Rubin http
Thu Mar 30 10:03:35 CEST 2006


Steven D'Aprano <steve at REMOVEMEcyber.com.au> writes:
> Think of it this way: if all(seq) is true, shouldn't it be the case
> that you can point to a specific element in seq that is true?

No, all(seq) is true if you can't point to a specific element in seq
that's false.



More information about the Python-list mailing list