[Python-bugs-list] [ python-Bugs-516712 ] SyntaxError tracebacks omit filename

noreply@sourceforge.net noreply@sourceforge.net
Tue, 12 Feb 2002 16:27:41 -0800


Bugs item #516712, was opened at 2002-02-12 15:37
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=516712&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.1 candidate
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Greg Ward (gward)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError tracebacks omit filename

Initial Comment:
In Python 2.2, SyntaxError tracebacks no longer show 
the last filename, ie. the file where the crash 
actually occurred.  This is really annoying.  Here's 
an example:

$ cat foo.py
foo =
$ python2.1 foo.py
  File "foo.py", line 1
    foo =
        ^
SyntaxError: invalid syntax
$ python2.2 foo.py
  File "<string>", line 1
    foo =
        ^
SyntaxError: invalid syntax


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-02-12 16:27

Message:
Logged In: YES 
user_id=21627

Duplicate of #498828
.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=516712&group_id=5470