homepage

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 vstinner
Recipients vstinner
Date 2010年06月06日.19:11:08
SpamBayes Score 0.010814613
Marked as misclassified No
Message-id <1275851470.16.0.472008534505.issue8926@psf.upfronthosting.co.za>
In-reply-to
Content
PyArg_ParseTuple("t") calls PyObject_GetBuffer() and then raise an error if arg->ob_type->tp_as_buffer->bf_releasebuffer is not NULL. I think that it should call PyBuffer_Release(&view) before raising the error, or simply check bf_releasebuffer before calling PyObject_GetBuffer().
getbuffer() calls PyObject_GetBuffer() and then raise an error if the buffer is not contiguous. I think that it should call PyBuffer_Release() before the error.
Attached patch fixes both errors.
Tell me if I'm wrong :-)
History
Date User Action Args
2010年06月06日 19:11:10vstinnersetrecipients: + vstinner
2010年06月06日 19:11:10vstinnersetmessageid: <1275851470.16.0.472008534505.issue8926@psf.upfronthosting.co.za>
2010年06月06日 19:11:09vstinnerlinkissue8926 messages
2010年06月06日 19:11:08vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /