New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile traceback must include filename #36699
Comments
> >>> 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 |
Logged In: YES To avoid any confusion: I (Thomas Heller) copied the 'Initial |
Logged In: YES I'm ready to work further on the patch. Comments appreciated! |
Logged In: YES Uploaded patch. I had to create quite some new functions to |
Logged In: YES It is a maze of twisty little passages that all look alike We should redo the entire API to have simpler names |
Logged In: YES Ok, I created a second patch according to your suggestions: |
Logged In: YES #2 Looks good. Check it in but:
|
Logged In: YES Checked in and closed. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: