◐ Shell
clean mode source ↗

gh-60107: Remove a copy from RawIOBase.read by cmaloney · Pull Request #141532 · python/cpython

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

@cmaloney

cmaloney

cmaloney

vstinner

vstinner

Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner

@vstinner

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request

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

Co-authored-by: Victor Stinner <vstinner@python.org>

ashm-dev pushed a commit to ashm-dev/cpython that referenced this pull request

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

Co-authored-by: Victor Stinner <vstinner@python.org>