[issue13072] Getting a buffer from a Unicode array uses invalid format

STINNER Victor report at bugs.python.org
Mon Aug 6 12:19:45 CEST 2012


STINNER Victor added the comment:

> memoryview is not aware of the 'u' format code, since it's not part of
> the struct syntax and the PEP-3118 proposition 'u' -> UCS2, 'w' -> UCS4
> wasn't considered useful.

Did you see attached patch array_unicode_format.patch? It uses struct
format "H" or "I" depending on the size of wchar_t.

----------

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


More information about the Python-bugs-list mailing list