while true: !!!

Tim Peters tim.one at home.com
Mon Dec 18 13:15:39 EST 2000


[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





More information about the Python-list mailing list