[Tutor] should this cause a syntax error?

Magnus Lycka magnus@thinkware.se
Sat Nov 2 14:06:09 2002


At 05:52 2002-11-03 +1300, Rob Brown-Bayliss wrote:
>Shouldn't the first one have caused a syntax error as it was not in an
>if or while loop etc?

Have you tried PyChecker? Maybe it would give
a warning about such a construct. (If it doesn't,
that could be a suggested feature.) There are
certainly some unbound expressions that are
normal, like lonely function calls, and perhaps
expressions with and/or, but I suppose a lonely
== will typically be an error.


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se