any() and all() on empty list?

Fredrik Lundh fredrik at pythonware.com
Fri Mar 31 01:40:39 EST 2006


Alex Martelli 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 ?
>
> Universally-false predicate <--> empty set
>
> ...in Cantor's/Frege's world

I was more thinking of Disney.

</F>






More information about the Python-list mailing list