[issue3139] bytearrays are not thread safe

Martin v. Löwis report at bugs.python.org
Fri Aug 1 17:23:34 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

I have now updated the patch to fix the socket bug, and the rejects
bytearray for t#.

As for making Py_buffer own a reference to the object: what should be
the semantics for PyObject_ReleaseBuffer? I see the following options:
- Drop PyObject_ReleaseBuffer
- make it DECREF the embedded object, whether or not it is the same as
the object being passed in
- leave it as-is, and require the caller to DECREF.

Added file: http://bugs.python.org/file11026/s_star.diff

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


More information about the Python-bugs-list mailing list