Message119749
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);
} |
|
Date |
User |
Action |
Args |
2010-10-28 01:28:44 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, lemburg, benjamin.peterson, eric.araujo |
2010-10-28 01:28:44 | kristjan.jonsson | set | messageid: <1288229324.55.0.59424294355.issue10211@psf.upfronthosting.co.za> |
2010-10-28 01:28:42 | kristjan.jonsson | link | issue10211 messages |
2010-10-28 01:28:42 | kristjan.jonsson | create | |
|