]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-80109: Fix io.TextIOWrapper dropping the internal buffer during write(...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jan 2024 10:47:50 +0000 (11:47 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 10:47:50 +0000 (10:47 +0000)
commit4db8d3be49b3a229932a24f6271d3f062843d08f
tree84979a161808c217c0622fe1076a7788f23f0242
parent320c160b1ace14be54f63b580af7adabe6b34a97
[3.11] gh-80109: Fix io.TextIOWrapper dropping the internal buffer during write() (GH-22535) (GH-113809)

io.TextIOWrapper was dropping the internal decoding buffer
during read() and write() calls.
(cherry picked from commit 73c93265634257b1488262097e024c1727260cfd)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/_pyio.py
Lib/test/test_io.py
Misc/NEWS.d/next/Library/2020-10-03-23-47-28.bpo-35928.E0iPAa.rst [new file with mode: 0644]
Modules/_io/textio.c