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

Nick Coghlan ncoghlan at iinet.net.au
Fri Mar 11 16:16:34 CET 2005


Rodrigo Dias Arruda Senra wrote:
> OFF-TOPIC:
> 
> It is curious though that we choose to read an *implicit*
> True in [all(), any()] instead of an implicit False.

Actually, I think it's predicate logic's fault:

   if p(x) for any x then conclusion 1

   if q(x) for all x then conclusion 2

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net


More information about the Python-Dev mailing list