bpo-35928: textio, set decoded_chars to NULL with check · Pull Request #11878 · python/cpython
Conversation
decoded_chars should be set to NULL when there is a
snapshot prior to clearing the snapshot in TextIOWrapper
write and read. This is ZackerySpytz change with an
addition.
| @@ -0,0 +1 @@ | |||
| TextIOWrapper now correctly handles the decoding buffer in read-write mode, using sockets aswell. No newline at end of file | |||
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What "using sockets as well" means?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Issue 35928 the initial symptom was about sockets using socket.makefile truncating the output to a client, as seen in the first test case.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the note to sockets as this is a side effect.
ghost
closed this
ghost
deleted the
fix-bpo-35928
branch
pravn
mannequin
mentioned this pull request
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters