[Python-Dev] Adding any() and all()

Eric Nieuwland eric.nieuwland at xs4all.nl
Mon Mar 14 00:02:16 CET 2005

I think the discussion should separate numeric calculation and truth 
value calculation.
Numeric calculation need to run through all elements, with the order 
possibly important.
Truth value calculation (as per any() and all()) may terminate before 
all elements have been seen.
Finally, any(), all(), and perhaps some should apply to sets as well.


More information about the Python-Dev mailing list