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 skrah
Recipients JakeMont, jnoller, martin.panter, r.david.murray, sbt, serhiy.storchaka, skrah, zach.ware
Date 2015-10-31.14:28:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446301688.43.0.678798236634.issue25498@psf.upfronthosting.co.za>
In-reply-to
Content
The current hack isn't necessary. I didn't review eryksun's patch
in depth, but on the surface it looks good.

I don't think the other issues you mentioned are closely related:
The cause here is that the obj fields of both the second memoryview
and the second mbuf are manually set to the address of the first
memoryview, which plays havoc with the rather complex deallocation
scheme.

I've opened #25524 in order to make it easier to create views
with detailed request flags.



As a practical matter, I think we should just revert the ctypes
change for 3.4 and 3.5 (after verifying a second time that
PyObject_AsWriteBuffer() is exactly the same as in 3.4.0).


Then we use the new function from #25524 for 3.6, which should
alleviate concerns about writablility (not all extension writers
read the docs:) etc.
History
Date User Action Args
2015-10-31 14:28:08skrahsetrecipients: + skrah, jnoller, r.david.murray, sbt, martin.panter, zach.ware, serhiy.storchaka, JakeMont
2015-10-31 14:28:08skrahsetmessageid: <1446301688.43.0.678798236634.issue25498@psf.upfronthosting.co.za>
2015-10-31 14:28:08skrahlinkissue25498 messages
2015-10-31 14:28:08skrahcreate