Why Don't Scripts Run ?

Daniel Dittmar daniel at dittmar.net
Wed Mar 13 14:39:25 EST 2002


 > 'python script.py'
 >
 > completely fails (syntax error).  This is the only way I

If you're getting a SyntaxError like below

[0] h:\tmp >python script.py
   File "<string>", line 2
     impor something
                   ^
SyntaxError: invalid syntax

then your Python is working just fine, there is only a mistake in your 
script.

Daniel




More information about the Python-list mailing list