Finding "hidden" syntax errors

Larry Bates lbates at
Fri Jun 11 20:03:38 CEST 2004

It doesn't happen often, but once in a while I will
introduce a syntax error into a Python program I'm
working on (in IDLE) and doing File-Check responds
with the expected "Failed to check, syntax error -
invalid syntax".  The problem is where the cursor
stops is perfectly legal syntax.  I then begin
going through the laborious job of cutting out
pieces of the code until I find what is wrong.  Is
there some easier way of doing this.  I tried
pychecker but got nowhere because it said it
couldn't import (which I'm sure is because of the
syntax error). Does anyone out there have a "better"
way of tracking down these difficult to locate

Thanks in advance for any hints.

Larry Bates
Syscon, Inc.

More information about the Python-list mailing list