[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

STINNER Victor report at bugs.python.org
Sun Apr 14 03:54:06 CEST 2013


STINNER Victor added the comment:

PyUnicode_DecodeUnicodeEscape() should set writer.min_length instead of using _PyUnicodeWriter_Prepare(), but the following assertion fails (because writer.size is zero by default):

        assert(writer.pos < writer.size || (writer.pos == writer.size && c == '\n'));

I don't understand this assertion, so I don't know how to modify it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17694>
_______________________________________


More information about the Python-bugs-list mailing list