syntax error : first python program
Ben Finney
ben+python at benfinney.id.au
Wed Dec 23 06:51:59 EST 2009
Anssi Saari <as at sci.fi> writes:
> At least here with Python 2.5.2 I get "IndentationError: unexpected
> indent". I'm just wondering why would the OP get a SyntaxError?
$ python2.4 -c ' pass'
File "<string>", line 1
pass
^
SyntaxError: invalid syntax
$ python2.5 -c ' pass'
File "<string>", line 1
pass
^
IndentationError: unexpected indent
--
\ “The Things to do are: the things that need doing, that you see |
`\ need to be done, and that no one else seems to see need to be |
_o__) done.” —Richard Buckminster Fuller, 1970-02-16 |
Ben Finney
More information about the Python-list
mailing list