Author Alex.Willmer
Recipients Alex.Willmer, christian.heimes, pitrou
Date 2019-06-11.07:31:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560238314.91.0.848193222462.issue37210@roundup.psfhosted.org>
In-reply-to
Content
I don't think I can do this. My WIP code is in https://github.com/moreati/cpython/pull/new/bpo-37210, and associated make test output is attached.

Principal blockers

-  `_pickle.PickleBuffer.raw()` can return a contiguous buffer from either a c_contiguous, or f_contiguous buffer. memoryview() (and hence pickle._PickleBuffer.raw()) requires a c_contiguous buffer.
- I'm unsure how to allow _PickleBuffer -> bytearray conversion

The most common cause of test failures is `TypeError: cannot pickle 'memoryview' object`. I guess Python is seeing a lack of __reduce__(), and failing back to walking the object attributes. Implementing __reduce__() and or __reduce_ex__() might fix this, but seems moot given the other blockers.
History
Date User Action Args
2019-06-11 07:31:54Alex.Willmersetrecipients: + Alex.Willmer, pitrou, christian.heimes
2019-06-11 07:31:54Alex.Willmersetmessageid: <1560238314.91.0.848193222462.issue37210@roundup.psfhosted.org>
2019-06-11 07:31:54Alex.Willmerlinkissue37210 messages
2019-06-11 07:31:54Alex.Willmercreate