The Wayback Machine - https://web.archive.org/web/20221230082240/https://github.com/python/cpython/pull/22535
Skip to content
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

bpo-35928: io.TextIOWrapper drops the internal buffer during write() #22535

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Oct 4, 2020

io.TextIOWrapper was dropping the internal decoding buffer
during read() and write() calls.

https://bugs.python.org/issue35928

io.TextIOWrapper was dropping the internal decoding buffer
during read() and write() calls.
@MaxwellDupre
Copy link
Contributor

MaxwellDupre commented May 21, 2022

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Hello\nYou\n
Hello\nYou\n

Works for me on 3.9.9, 3.10.4 and 3.12.0a0 (just what I have installed).
Hence it looks like its fixed but I don't know how far back this goes.
Also, I note that _pyio.py has changed extensively but textio.c has not; so not sure if the changes there are applicable. The trail is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants