SyntaxError: invalid syntax
Terry Hancock
hancock at anansispaceworks.com
Tue Dec 27 13:20:40 EST 2005
On Tue, 27 Dec 2005 09:32:18 GMT
"DIBS" <max at legs.com> wrote:
> >>> python sudoku.py
> File "<stdin>", line 1
> python sudoku.py
> ^
>
> >>>SyntaxError: invalid syntax
>
> Thanks for your help.
> The above is the extact message.
Based on the ">>>" prompt, I'd say you tried to type this
into the python interactive interpreter. It's supposed to be
a shell command -- i.e. you *invoke* the python interpreter
to run the file from the command line.
If you are already running python, then you might get what
you want by importing the module:
>>> import sudoku
but whether that's what you really want or not depends on
how the module is meant to be used (is it a "module" or a
"script"?).
Cheers,
Terry
--
Terry Hancock (hancock at AnansiSpaceworks.com)
Anansi Spaceworks http://www.AnansiSpaceworks.com
More information about the Python-list
mailing list