]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in fcntl (#138921)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Sep 2025 14:21:43 +0000 (15:21 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 14:21:43 +0000 (16:21 +0200)
commitf07ae274b8e98c570d40b1aabd4cc42cb44a13ca
tree040332817628ded802d6744a5c26914f810667fb
parent43013f72f0aadc5ee428aa5bdf6d949b4e79779a
gh-129813, PEP 782: Use PyBytesWriter in fcntl (#138921)

Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.

Don't build the fcntl with the limited C API anymore, since
the PyBytesWriter API is not part of the limited C API.
Modules/clinic/fcntlmodule.c.h
Modules/fcntlmodule.c