while true: !!!

D-Man dsh8290 at rit.edu
Mon Dec 18 15:12:25 EST 2000


On Mon, Dec 18, 2000 at 01:15:39PM -0500, Tim Peters wrote:
> [D-Man]
> > I think that some people were confused with this statement.  He meant
> > that 'true' and 'false' would be constants like in C++ and Java.  It
> > would be illegal to try
> >
> > true = false
> > ...
> 
> A non-empty string literal is true, and unalterably so, so everyone can be
> happy writing:
> 
> while "forever, because stupid Guido won't define 'true'":
>     wink

Yes, true should be defined as a global constant, but this is almost
as good :

while 'true' :

:-)


Good point Tim.




More information about the Python-list mailing list