]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125196: Use PyUnicodeWriter for repr(list) (#125202)
authorVictor Stinner <vstinner@python.org>
Wed, 9 Oct 2024 21:56:30 +0000 (23:56 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 21:56:30 +0000 (23:56 +0200)
commit52f70da19cf3c7198be37faeac233ef803080f6f
tree2dc6a128cf6f6b9cb9a9e3d573dfa6d8542f1cc0
parent7d2c39752fa6f685f15ad9c585d83a62553477c2
gh-125196: Use PyUnicodeWriter for repr(list) (#125202)

Replace the private _PyUnicodeWriter with the public PyUnicodeWriter.

Replace PyObject_Repr() + _PyUnicodeWriter_WriteStr()
with PyUnicodeWriter_WriteRepr().
Objects/listobject.c