[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

Antoine Pitrou report at bugs.python.org
Sat Aug 14 15:59:14 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

I don't think we should change anything in 2.7 at this point. It risks breaking compatibility while we are at the end of the 2.x line, for little added benefit (the old buffer API has always been insecure with mutable buffers).

As for 3.2, PyObject_AsCharBuffer() should IMO be deprecated, as well as any other functions meant to query the old buffer API.

----------
nosy: +loewis

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


More information about the Python-bugs-list mailing list