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
universal newlines edge case: trailing \r\r treated as a single newline #4037
Comments
In Heptapod by @cfbolz on Nov 23, 2023, 11:39 thanks for the report. ouch, this is annoying. from your examples it looks like only the last |
In Heptapod by @cfbolz on Nov 23, 2023, 15:17 mentioned in commit 5b31c9b32ef9c204de9b0671cdcb542a8c6f2e25 |
In Heptapod by @cfbolz on Nov 23, 2023, 15:19 fixed in pypy2 in the above commit, now merging to pypy3 |
In Heptapod by @cfbolz on Nov 28, 2023, 17:32 mentioned in commit 4e87fc16efa440c7368282311b0e5df6ebe4f237 |
Closing, should be fixed. Please open a new issue if needed. |
In Heptapod by @dairiki on Nov 23, 2023, 07:11
I just stumbled across this by chance:
I see the same behavior with both
pypy3.9-7.3.13
andpypy3.10-7.3.13
(installed via pyenv)The same bug happens when reading from a file.
It only happens with
newline=""
(universal newlines without newline translation). Ifnewline
is set toNone
, things seem to work as they are supposed to.The text was updated successfully, but these errors were encountered: