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 rupole
Recipients ncoghlan, pitrou, rupole
Date 2010-11-03.01:17:29
SpamBayes Score 0.0012173073
Marked as misclassified No
Message-id <1288747052.45.0.352431471183.issue10181@psf.upfronthosting.co.za>
In-reply-to
Content
The culprit wrt copying Py_buffer structs seems mainly to be dup_buffer, which is called in memory_getbuf.  This seems unnecessary in the case where there's an underlying object and it has returned the view thru its own tp_as_buffer.  The underlying object at that point is solely responsible for releasing the buffer, so memory_getbuf shouldn't mess with it at all.  In the case where there is no underlying object (mainly thru PyMemoryView_FromBuffer), it probably should allocate any memory in the view in such a way that it can be freed in memory_releasebuf when the view->obj is NULL.
History
Date User Action Args
2010-11-03 01:17:32rupolesetrecipients: + rupole, ncoghlan, pitrou
2010-11-03 01:17:32rupolesetmessageid: <1288747052.45.0.352431471183.issue10181@psf.upfronthosting.co.za>
2010-11-03 01:17:31rupolelinkissue10181 messages
2010-11-03 01:17:29rupolecreate