[Tutor] funny true or false

Norvell Spearman norvell@houseofspearman.org
Fri May 9 04:23:02 2003


On Friday, 2003.05.09, 16:29:00 +0800, ali wrote:
> isn't this weird and may lead to confusion (of course, is your using True or
> False as variables and not as constants)...
> 
> what if you inadvertently assigned a value to True or False... it may lead
> to confusion...
> 
> i even tried to assign a list to True or False and it worked...

According to the Tutorial, one may override (actually, create an
independent local variable with the same name) built-in variables with
new values --- not that it's recommended, of course.  See the last part
of Section 3.1.1 in the Tutorial

-- 
Norvell Spearman