]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-60107: Remove a copy from RawIOBase.read (#141532)
authorCody Maloney <cmaloney@users.noreply.github.com>
Thu, 20 Nov 2025 17:37:04 +0000 (09:37 -0800)
committerGitHub <noreply@github.com>
Thu, 20 Nov 2025 17:37:04 +0000 (17:37 +0000)
commite90061f5f13ff8ad43cfed0ca724bef42609fe20
tree7431800d7941efe80ec46a30072886a1a9a0da07
parent722f4bb8c9c6b32a7221e4813058cbb5c3989c10
gh-60107: Remove a copy from RawIOBase.read (#141532)

If the underlying I/O class keeps a reference to the memory, raise BufferError.

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/test/test_io/test_general.py
Misc/NEWS.d/next/Library/2025-11-13-13-11-02.gh-issue-60107.LZq3QF.rst [new file with mode: 0644]
Modules/_io/iobase.c