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
raw strings #56002
Comments
>>> print(r'\')
SyntaxError: EOL while scanning string literal
>>> print(r'\'')
\'
>>> |
I think it should be >>> print(r'\')
\
>>> print(r'\'')
|
This is by design and documented: """ |
Sorry for my poor english and thank you for the answer. |
To a pythonista, the perl behavior is counter-intuitive :) That said, the behavior of r'\' *is* somewhat counter-intuitive. See bpo-1271 for a fairly thorough exploration of why it is the way it is. |
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: