Discussion:
[Tutor] SyntaxError: unexpected EOF while parsing
Alan Gauld
2015-08-18 09:31:47 UTC
Permalink
SyntaxError: unexpected EOF while parsing.
The reason is that the parser reached the end of the file
while still trying to parse a Python statement.

Usually this is caused by such things as a missing quote
or parenthesis. You usually have to go back a line or two
to see where the problem originates.

If you are commenting out lines at the end of the file its
likely you have commented out a closing paren or quote
somewhere.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Loading...