]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-151640: Track sharing of `BytesIO` buffer in free-threaded builds (GH-15165...
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 9 Jul 2026 06:24:45 +0000 (02:24 -0400)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2026 06:24:45 +0000 (23:24 -0700)
commit11c8bf7a47f824577d7b23d8b4e03d895acb2b35
tree41435b1d379a5c62728da70fad64e1ae90133142
parent63d2ecf17fc5ab12b268c483830ae0077c6fc03b
[3.14] gh-151640: Track sharing of `BytesIO` buffer in free-threaded builds (GH-151651) (gh-153153)

(cherry picked from commit 881a13a97c7a29b9de57913c773cd5f195270fbd)

Remove peek() call and call BytesIO class directly, fixes test for Python 3.14.

Co-authored-by: Pedram Karimi <147748351+pedramkarimii@users.noreply.github.com>
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Lib/test/test_free_threading/test_io.py
Lib/test/test_memoryio.py
Misc/NEWS.d/next/Library/2026-06-18-12-48-03.gh-issue-151640.R4c3Fx.rst [new file with mode: 0644]
Modules/_io/bytesio.c