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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 04 Jul 2002 01:40:47 -0700


Bugs item #564931, was opened at 2002-06-05 19:09
You can respond by visiting: 
https://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-07-04 10:40

Message:
Logged In: YES 
user_id=11105

I'm ready to work further on the patch. Comments appreciated!

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

Comment By: Thomas Heller (theller)
Date: 2002-06-05 20: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: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=564931&group_id=5470