]> granicus.if.org Git - python/commit
bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440)
authorVictor Stinner <vstinner@redhat.com>
Tue, 19 Mar 2019 23:05:51 +0000 (00:05 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2019 23:05:51 +0000 (00:05 +0100)
commitc70ab02df2894c34da2223fc3798c0404b41fd79
treef97dfba89426b0fffa50b103a0afd213f42bca4a
parentfd23cfa464ab93273370475900819c1ea37c852f
bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440)

No longer limit repr(structseq) to 512 bytes. Use _PyUnicodeWriter
for better performance and to write directly Unicode rather than
encoding repr() value to UTF-8 and then decoding from UTF-8.
Misc/NEWS.d/next/Core and Builtins/2019-03-19-15-58-23.bpo-36365.jHaErz.rst [new file with mode: 0644]
Objects/structseq.c