[issue3139] bytearrays are not thread safe
Martin v. Löwis
report at bugs.python.org
Thu Jul 31 22:14:55 CEST 2008
Martin v. Löwis <martin at v.loewis.de> added the comment:
> But t# uses bf_getcharbuffer(), which does not seem to lock anything.
Indeed. I think we can safely drop support for passing buffer objects
into t# which have getbuffer/releasebuffer, so the check for
releasebuffer being NULL should be added to t#.
I think the bytearray object should refuse to implement getcharbuffer,
anyway.
> I wonder if this can lead to the same kind of problems, for example when
> calling file_write with a binary file.
It should be a text file to cause problems, right?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3139>
_______________________________________
More information about the Python-bugs-list
mailing list