]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-87193: Support bytes objects with refcount > 1 in _PyBytes_Resize() (GH-117160)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 25 Mar 2024 15:32:11 +0000 (17:32 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2024 15:32:11 +0000 (16:32 +0100)
commit0c1a42cf9c8cd0d4534d5c1d58f118ce7c5c446e
tree929ca228612a2f48b5e7afa86101fcecb04ad29d
parent01e7405da400e8997f8964d06cc414045e144681
gh-87193: Support bytes objects with refcount > 1 in _PyBytes_Resize() (GH-117160)

Create a new bytes object and destroy the old one if it has refcount > 1.
Doc/c-api/bytes.rst
Lib/test/test_capi/test_bytes.py
Misc/NEWS.d/next/C API/2024-03-22-19-29-24.gh-issue-87193.u7O-jY.rst [new file with mode: 0644]
Modules/Setup.stdlib.in
Modules/_testcapi/bytes.c [new file with mode: 0644]
Modules/_testcapi/parts.h
Modules/_testcapimodule.c
Objects/bytesobject.c
Objects/fileobject.c
PCbuild/_testcapi.vcxproj
PCbuild/_testcapi.vcxproj.filters