if __name__=='__main__': main()

Andrew Koenig ark at research.att.com
Fri Dec 20 11:21:25 EST 2002


jaime> I am trying to run a script from IDLE and 
jaime> I get an error message saying

jaime>     main()
jaime>          ^
jaime> SyntaxError: invalid syntax

I'll bet it's an indentation error or something like that.

Can you post the entire code, or at least enough context
to make it clear what's going on?

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark



More information about the Python-list mailing list