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 memeplex
Recipients memeplex
Date 2016-06-09.03:39:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465443551.4.0.389500188877.issue27274@psf.upfronthosting.co.za>
In-reply-to
Content
I would like to add some information about my use case. Many c structs have pointers to arrays of data plus some field indicating the length of those arrays. Sometimes I need to pickle that kind of structs and a bytes object has to somehow be created from each pointer, given the length (the alternative ptr[:len] is too expensive for large arrays). So I need to cast the pointer to a ctypes array first and then convert the array to bytes (sadly, there is no way to pickle a memoryview, so a copy is unavoidable).
History
Date User Action Args
2016-06-09 03:39:11memeplexsetrecipients: + memeplex
2016-06-09 03:39:11memeplexsetmessageid: <1465443551.4.0.389500188877.issue27274@psf.upfronthosting.co.za>
2016-06-09 03:39:11memeplexlinkissue27274 messages
2016-06-09 03:39:11memeplexcreate