Re: Newbie Question:Please help

2008-09-12 Thread Steve Holden
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

Re: Newbie Question:Please help

2008-09-08 Thread Rob Weir
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

Newbie Question:Please help

2008-09-08 Thread Karthik Krishnan
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