]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in _winapi.PeekNamedPipe() (#138930)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Sep 2025 20:25:47 +0000 (21:25 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 20:25:47 +0000 (21:25 +0100)
commitc5fb72ea6ced51a7d20d5b203dc832558d972321
tree473d265615d44560a1f93877879b0d840e7c02b9
parentdfd52e7a8b5a7e5a5d64b11742ac7242ec938ede
gh-129813, PEP 782: Use PyBytesWriter in _winapi.PeekNamedPipe() (#138930)

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