any() and all() on empty list?

Paul Rubin http
Sat Apr 1 03:11:56 EST 2006


Ron Adam <rrr at ronadam.com> writes:
>      true_count, count = countall(S), len(S)

In general it's preferable to not rely on len being available, since
these are arbitrary iterators.



More information about the Python-list mailing list