[issue8850] Remove "w" format of PyParse_ParseTuple()
STINNER Victor
report at bugs.python.org
Sun Jun 13 23:36:22 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
"w#" is not only useless but also not used in py3k source code. "w" is also not used. Only "w*" is used by fnctl and socket modules.
The problem with w# is that the caller cannot "release" the buffer and so we cannot lock the buffer. I don't know exactly what happens if you get a pointer to a bytearray, release the GIL and then use it, whereas another thread modifies and/or destroys the bytearray object. (I suppose that something bad will happen, like a segfault)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8850>
_______________________________________
More information about the Python-bugs-list
mailing list