-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 Byte strings do not handle \r
#60604
Comments
I guess the best way to solve this is to move |
I wanted to create an issue about this as well! I think translation of (*) The prohibition of bare As a variation of raw byte string literals, |
+1 here. Having both |
Not only Python, C++ also assumes that the newline translation happens at IO boundary during source file loading. My only concern is that it would prevent |
Not an expert in I'll look into fixing this this week. |
I'm working on it. |
closed by #60793 |
Everywhere in the language we treat
\r\n
as\n
, and forbid bare\r
. In particular, in raw strings we do translate\r\n
to\n
, which makes sense, given that line ending depends on git config.However, for raw byte string literals we don't do this, and this looks like a bug?
The text was updated successfully, but these errors were encountered: