metaperl wrote: > Istvan Albert wrote: > > metaperl wrote: > > > --> python -i > > > >>> class = "algebra" > > > File "<stdin>", line 1 > > > class = "algebra" > > > ^ > > > SyntaxError: invalid syntax > > > > Designing a syntax to avoid all possible newbie errors is impractical > > because as soon as you are finished with one iteration the new newbies > > will start making different kinds of errors... > > You are missing the point: the point is that the above could be > considered correct if the rules of Python were that an assignment > statement takes > IDENTIFIER '=' LVALUE > > Also "class" IDENTIFIER COLON could also be considered correct. >
Yes it could but it isn't and isn't likely to be. Simply do not use reserved words. That rule is hardly limited to Python. Robert -- http://mail.python.org/mailman/listinfo/python-list