]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in bufferedio.c (#138954)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Sep 2025 21:50:09 +0000 (22:50 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 21:50:09 +0000 (21:50 +0000)
commit4554486f156ee399d14a3324a2e214e6527b0b2b
treead149dc357c4dd26370d73dbe04f8211d50f2f39
parente814e6b38bc87ff91c3ba73cfe90a1b803142bc2
gh-129813, PEP 782: Use PyBytesWriter in bufferedio.c (#138954)

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