Message119749
| 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: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 |
|