]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in FileIO.read() (#138955)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Sep 2025 21:49:28 +0000 (22:49 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 21:49:28 +0000 (23:49 +0200)
commite814e6b38bc87ff91c3ba73cfe90a1b803142bc2
tree2f26967b602d12857a8d540e473a2bea8f876dd5
parentf62b495f792b579f610a7fbf93c8e4c53ccf1369
gh-129813, PEP 782: Use PyBytesWriter in FileIO.read() (#138955)

Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Modules/_io/fileio.c