10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The Python 3.11.3 interpreter, upon seeing the expression r'\' emits the message SyntaxError: unterminated string literal
The text was updated successfully, but these errors were encountered:
Thanks, but this isn't a bug.
This is documented at this FAQ: https://docs.python.org/3/faq/programming.html#can-i-end-a-raw-string-with-an-odd-number-of-backslashes
It's also mentioned at https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
(we recently improved the docs for this in #94768 )
Sorry, something went wrong.
@greg1lutz Please ask whether behaviors are bugs on the discuss help channel.
Oh one more note is that I'd opened #100446 to explore ways to improve the error message
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
The Python 3.11.3 interpreter, upon seeing the expression
r'\'
emits the message
SyntaxError: unterminated string literal
The text was updated successfully, but these errors were encountered: