while true: !!!

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Dec 20 19:49:34 EST 2000


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! :-)

Nothing-is-weird-stuff,

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list