[issue17223] Initializing array.array with unicode type code and buffer segfaults

Ezio Melotti report at bugs.python.org
Sat Feb 23 04:22:12 CET 2013


Ezio Melotti added the comment:

Shouldn't this still work on 3.3/3.4?

In Modules/arraymodule.c:1562, in the array_tounicode function, there is:

return PyUnicode_FromUnicode((Py_UNICODE *) self->ob_item, Py_SIZE(self));

I think this should be updated to work with the PEP 393 implementation, rather than raising an error.

----------
versions:  -Python 2.7, Python 3.2

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


More information about the Python-bugs-list mailing list