any(), all() and empty iterable

Luis Zarrabeitia kyrie at uh.cu
Thu Apr 16 15:59:44 EDT 2009


On Thursday 16 April 2009 02:46:24 pm Dale Roberts wrote:
> On Apr 16, 2:27 pm, Tim Chase <python.l... at tim.thechases.com> wrote:
>
> Yes, I now appreciate the motivation for having the word "all" in the
> text, and simply adding something like "or the iterable is empty"
> might head off future confusion.

/me wonders how no one on this thread suggested that before.

That seems like a pretty simple and clear fix to all this thread.

+100^2 

-- 
Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.
http://profesores.matcom.uh.cu/~kyrie



More information about the Python-list mailing list