[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()
Antoine Pitrou
report at bugs.python.org
Fri Aug 20 22:08:16 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> Doesn't the GIL protect the bytearray buffer? Or does decoding free the GIL?
Well, decoding can call arbitrary Python code and therefore, yes,
release the GIL.
Ironically, PyUnicode_Decode() itself (called from
PyUnicode_FromEncodedObject()) fills a dummy Py_buffer object before
wrapping it into a memoryview... ;)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7415>
_______________________________________
More information about the Python-bugs-list
mailing list