while true: !!!

Donn Cave donn at u.washington.edu
Wed Dec 20 20:30:39 EST 2000


Quoth Greg Ewing <greg at cosc.canterbury.ac.nz>:
| gbreed at cix.compulink.co.uk wrote:
|> 
|> Take any type, and if
|> there's a way of it being nothing, it evaluates false.
|
| Hmmm, let's try that out. Is [[]] true or false? 
| It's a list containing a list containing nothing. 
| Since [] is false, a list containing nothing must be
| nothing. So [[]] is a list containing nothing,
| which is nothing. Ah, it must be false! :-)

I sure hate to prolong the life of this miserable thread,
but that's too silly.  [[]] is not a list containing nothing,
it's a list containing [].  [] is not nothing, it's something
that's false.

	Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list