any(), all() and empty iterable

Tim Chase python.list at tim.thechases.com
Sun Apr 12 13:45:52 EDT 2009


> That's why you ask "Do you have any books called 'Robinson Crusoe'?" rather
> than "Are all your books called 'Robinson Crusoe'?".

Mu.  If I don't have any books..."Have you stopped beating all 
your wives?"  The question makes the presumption that I have 
books (or that you've been beating your wife).

-tkc





More information about the Python-list mailing list