[Pythonmac-SIG] Syntax error bug in Python IDE

Dean & Yang Draayer draayer@surfglobal.net
Sat, 28 Jul 2001 04:07:45 -0400


In a new Python IDE editing window, type just 'return'.  Then hit the 
Run button.  I get the following traceback:

----------
Traceback (most recent call last):
  File "Manfred:Dev:Python 2.1:Mac:Tools:IDE:Wtraceback.py", line 41, 
in traceback
    self.syntaxerror()
  File "Manfred:Dev:Python 2.1:Mac:Tools:IDE:Wtraceback.py", line 59, 
in syntaxerror
    charno = charno - 1
TypeError: unsupported operand type(s) for -
----------

Of course, this should give a syntax error (try it in the Python 
Interpreter window to see the correct traceback).  But it seems the 
charno variable isn't set right when the IDE wants to report the error.

Dean