MSDOS/Windows program files

Aaron Brown arundelo at mediaone.net
Sun Aug 19 09:25:59 CEST 2001


I'm running Python 2.1.1 on Win98.  (My Linux box is down for
repairs.)  When I save and run a program file I get "SyntaxError:
invalid syntax" on whatever the last line happens to be, even if it's
a comment.  I assume that Python does not like whatever
end-of-file character is being put there, but interactive mode
reacts properly to ctrl-z.

It happens no matter whether I use EDIT or Notepad to create
the file.

Thank you for your help!

--Aaron Brown








More information about the Python-list mailing list