Kristján Valur Jónsson <krist...@ccpgames.com> added the comment:

Do you mean that we should disable writing for the new style buffer interface?  
Currently the patch respects the Buffer object's read-only flag 
(self->b_readonly):

static int buffer_getbuffer(PyBufferObject *self, Py_buffer *buf, int flags)
{
        void *ptr;
        Py_ssize_t size;
        if (!get_buf(self, &ptr, &size, ANY_BUFFER))
                return -1;
        return PyBuffer_FillInfo(buf, (PyObject*)self, ptr, size,
                self->b_readonly, flags);
}

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10211>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to