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
Quote-type recognition bug #47065
Comments
Let's make an intentional syntax error... >>> print "Testing\"
SyntaxError: EOL while scanning single-quoted string Please focus on the part of the error message that states "while The error message in this case should, however, be: SyntaxError: EOL while scanning double-quoted string |
It seems "single-quoted" doesn't mean the actual quotation sign used but $ cat foo.py
"""bar
$ python foo.py
File "foo.py", line 3
SyntaxError: EOF while scanning triple-quoted string This shouldn't read sextuple-quoted string, should it? |
I have e-mailed Guido van Rossum about this. He replied: "Good find. |
This is not a bug in my opinion -- Robert has stated why. However, since you contacted Guido, let him decide. :) |
As the term "single-quoted string" is clearly ambiguous, I propose to |
OK, done so in r63068. |
It would be better to say "End of line while scanning string (<string>, line 1)" and "End of f... while scanning multi-line string (<string>, line 1)" These messages really need to be clear, so putting EOF for example |
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: