I have this file in linux
===============

sample.py

#!/usr/bin/env python
    name = "blah"
    print name

-------------------------------------------

I executed this

bash# ./sample.py
  File "./sample.py", line 2
    name = "blah"
    ^
bash# /usr/bin/python sample.py
  File "sample.py", line 2
    name = "blah"
    ^
SyntaxError: invalid syntax

Any one knows , whats the syntax error here?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to