[Python-bugs-list] [ python-Bugs-501623 ] traceback problem

noreply@sourceforge.net noreply@sourceforge.net
Wed, 09 Jan 2002 20:09:34 -0800


Bugs item #501623, was opened at 2002-01-09 20:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=501623&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: David Abrahams (david_abrahams)
Assigned to: Nobody/Anonymous (nobody)
Summary: traceback problem

Initial Comment:
This showed up on the Scons-devel list a few days ago, 
posted by Anthony Roach (aroach@electriceyeball.com):

On Tue, Jan 08, 2002 at 09:11:56AM -0600, Charles 
Crain wrote:
> Python 2.2 is out now, so I downloaded it and ran 
the test suite.
> Everything passed except for errors.py, because it 
seems they changed the
> syntax of the traceback a tad.

I saw this too, and as far as I can tell it's a bug in 
Python
2.2. Basically syntax errors no longer tell you what 
the file is where the
syntax error is, and where the filename used to be it 
just says
<string>. Someone should file a bug report to Python 
about this...

-- 


Verified:

Administrator@MOREPIE e:/temp
$ cat > c:/temp/foo.py
def foo bar:
        pass

Administrator@MOREPIE e:/temp
$ python c:/temp/foo.py
  File "<string>", line 1
    def foo bar:
              ^
SyntaxError: invalid syntax


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

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