]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129813, PEP 782: Use PyBytesWriter in utf8_encoder() (#138874)
authorVictor Stinner <vstinner@python.org>
Tue, 23 Sep 2025 09:47:09 +0000 (11:47 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Sep 2025 09:47:09 +0000 (11:47 +0200)
commit8cfd7b4ecf9c01ca2bea57fe640250f716cb6ee3
tree53a1d8f5f0d650e97e2a8c784ff750f8fbed1b7a
parent49e83e31bd45e513a3caaa39b5789e95caa78ac1
gh-129813, PEP 782: Use PyBytesWriter in utf8_encoder() (#138874)

Replace the private _PyBytesWriter API with the new public
PyBytesWriter API in utf8_encoder() and unicode_encode_ucs1().
Objects/stringlib/codecs.h
Objects/unicodeobject.c