This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients benjamin.peterson, eric.araujo, kristjan.jonsson, lemburg
Date 2010-10-28.01:28:42
SpamBayes Score 2.7912188e-07
Marked as misclassified No
Message-id <1288229324.55.0.59424294355.issue10211@psf.upfronthosting.co.za>
In-reply-to
Content
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);
}
History
Date User Action Args
2010-10-28 01:28:44kristjan.jonssonsetrecipients: + kristjan.jonsson, lemburg, benjamin.peterson, eric.araujo
2010-10-28 01:28:44kristjan.jonssonsetmessageid: <1288229324.55.0.59424294355.issue10211@psf.upfronthosting.co.za>
2010-10-28 01:28:42kristjan.jonssonlinkissue10211 messages
2010-10-28 01:28:42kristjan.jonssoncreate