]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in bufferedio.c (#139121)
authorVictor Stinner <vstinner@python.org>
Thu, 18 Sep 2025 15:00:10 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 15:00:10 +0000 (17:00 +0200)
commit9b35f7cdfedc1835f36b87662617fb60d06fe412
treee5fc908633f4c0dfd6e0b2494588a414e965e05f
parent446587c58eb60b9484b0cef4d533a3191b85f312
gh-129813, PEP 782: Use PyBytesWriter in bufferedio.c (#139121)

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