buggie in else syntax ?

Ant antroy at gmail.com
Wed Aug 15 08:03:17 EDT 2007


On Aug 15, 9:40 am, stef mientki <tjoll... at googlemail.com> wrote:
> Thomas Jollans wrote:
...
>     else: JSM(230) ; \
>         if b>3:              <== SYNTAX ERROR pointing to the "f" of if

This is equivalent to:

>     else: JSM(230) ;       if b>3:

If statements (any compund statements in fact such as for loops etc)
*must* start on a new line (with indentation as necessary):

http://docs.python.org/ref/compound.html

--
Ant...

http://antroy.blogspot.com/





More information about the Python-list mailing list