[New-bugs-announce] [issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

STINNER Victor report at bugs.python.org
Fri Aug 10 04:30:30 CEST 2012

New submission from STINNER Victor:

Attached patch rewrites the C implementation of StringIO to use the _PyUnicodeWriter API instead of the PyAccu API. It provides better performance when writing non-ASCII strings.

The patch adds new functions:

 - _PyUnicodeWriter_Truncate()
 - _PyUnicodeWriter_WriteStrAt()
 - _PyUnicodeWriter_GetValue()

components: IO, Unicode
files: stringio_unicode_writer.patch
keywords: patch
messages: 167850
nosy: ezio.melotti, haypo, pitrou
priority: normal
severity: normal
status: open
title: Rewriter StringIO to use the _PyUnicodeWriter API
versions: Python 3.4
Added file: http://bugs.python.org/file26752/stringio_unicode_writer.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list