[Python-bugs-list] [ python-Bugs-564931 ] compile traceback must include filename

noreply@sourceforge.net noreply@sourceforge.net
Thu, 06 Jun 2002 08:10:52 -0700


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

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Heller (theller)
>Assigned to: Jeremy Hylton (jhylton)
Summary: compile traceback must include filename

Initial Comment:
> >>> compile("1+*3", "myfile.py", "exec")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "<string>", line 1
>     1+*3
>       ^
> SyntaxError: invalid syntax
> >>>
> 
> Shouldn't it print "myfile.py" instead of "<string>"?

Yes.

--Guido van Rossum 


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

Comment By: Thomas Heller (theller)
Date: 2002-06-05 18:57

Message:
Logged In: YES 
user_id=11105

To avoid any confusion: I (Thomas Heller) copied the 'Initial 
Comment' from a message posted to python-dev by Guido.

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

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