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
TextIOWrapper(newline="\n", line_buffering=True) mistakenly treat \r as a newline #66267
Comments
TextIOWrapper(b, newline="\n", line_buffering=True) object calls flush() The documentation says [1]:
i.e., writing \r shouldn't force flush() if newline="\n" [1] https://docs.python.org/3.4/library/io.html#io.TextIOWrapper |
Looks as this behavior is intentional. Documentation should be corrected. |
Note that the correct link to the test case is: |
Thanks! |
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: