any() and all() on empty list?

Fredrik Lundh fredrik at pythonware.com
Thu Mar 30 13:53:42 CEST 2006


Marcin Ciura wrote:

>>>all(flying elephants which are not pink) => true
>>>
>>>So, these flying elephants -- are they pink or not?
>>
>> No, you ask two different sets whether they are true.
>
> No, there is only one empty set.

who said anything about empty sets ?

</F> 






More information about the Python-list mailing list