STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8850>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to