Karthik Krishnan wrote:
> Hi,
>
> I am a newbie to python and I hope this is not a stupid question. I am
> trying to run a main method from a Python command line using the command
> shell using the command.
>
> python main_test.py
>
> I get the following error.
>
>
> File "", line 1
> python
On 9 Sep 2008, Karthik Krishnan wrote:
> File "", line 1
> python main_test.py
>
> Syntax Error: invalid syntax
I get:
File "/tmp/x.py", line 11
if __name__ = "__main__":
^
SyntaxError: invalid syntax
> if __name__ = "__main__":
^
= is used for assignment in
Hi,
I am a newbie to python and I hope this is not a stupid question. I am
trying to run a main method from a Python command line using the command
shell using the command.
python main_test.py
I get the following error.
File "", line 1
python main_test.py
Syntax Error: invalid syntax
My ma