[Tutor] Re: should this cause a syntax error?

Emile van Sebille emile@fenx.com
Sat Nov 2 12:25:03 2002


Rob Brown-Bayliss:
> self.some_value == FALSE
>
> rather than the correct
>
> self.some_value = FALSE
>
> Shouldn't the first one have caused a syntax error as it was not in an
> if or while loop etc?
>

No.  The result of the comparison was simply not bound.  This might more
commonly be found on a return line, and on a line by itself is certainly
suspect.

--

Emile van Sebille
emile@fenx.com

---------