any() and all() on empty list?
Paul Rubin
http
Wed Mar 29 05:30:53 EST 2006
Ron Adam <rrr at ronadam.com> writes:
> Just thinking about things. I really just want what is best for
> Python in the long term and am not trying to be difficult.
I'm sorry, maybe it's the math geek in me, but I just see all those
suggestions about "not not S" as being contorted. It's obvious to me
that all([]) should be True, that while(any(S)) should not terminate
if S is empty, etc.
Someone asked for a cite; I listed one before:
http://en.wikipedia.org/wiki/For_all
See the "Negation" section.
More information about the Python-list
mailing list