[issue19512] Avoid temporary Unicode strings, use identifiers to only create the string once

STINNER Victor report at bugs.python.org
Thu Nov 7 11:35:40 CET 2013


STINNER Victor added the comment:

>> Another problem is that PyUnicode_FromString() failure is not handled correctly in some cases. PyUnicode_FromString() can fail because an decoder error, but also because of a MemoryError.

> It can't fail on "stdout" because an decoder error.

It can fail on "stdout" because of a memory allocation failure.

----------

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


More information about the Python-bugs-list mailing list