[Python-bugs-list] [ python-Bugs-498828 ] SyntaxError reports wrong module name

noreply@sourceforge.net noreply@sourceforge.net
Sat, 05 Jan 2002 13:41:56 -0800


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

Category: None
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Atsuo Ishimoto (atsuoi)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError reports wrong module name

Initial Comment:
With Python 2.2, importing this module

== xxx.py ===
def abcdefg(l):
    l.append("kfda"

doesn't show module name 'xxx' in traceback info.

>>> import xxx
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "<string>", line 3
    l.append("kfda"
                  ^
SyntaxError: invalid syntax





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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-05 13:41

Message:
Logged In: YES 
user_id=21627

Thanks for the report. Fixed in parsetok.c 2.29 and 2.28.8.1.

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

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