]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in _PyBytes_FromList() (#138837)
authorVictor Stinner <vstinner@python.org>
Sat, 13 Sep 2025 17:23:57 +0000 (19:23 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Sep 2025 17:23:57 +0000 (19:23 +0200)
commit430900d15b3d3abb5c6460fbdbf90f4d6561397d
tree0a2a3fcabc5549e90c45a6f92b1837cae3399275
parentaf386fd36151b4ff94d04002dc8fa7462d83633e
gh-129813, PEP 782: Use PyBytesWriter in _PyBytes_FromList() (#138837)

Use the new public PyBytesWriter API in:

* _PyBytes_FromHex()
* _PyBytes_FromBuffer()
* _PyBytes_FromList()
* _PyBytes_FromTuple()
* _PyBytes_FromIterator()

Add _PyBytesWriter_ResizeAndUpdatePointer() and
_PyBytesWriter_GetAllocated() helper functions.
Objects/bytesobject.c