Message345197
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. |
|
Date |
User |
Action |
Args |
2019-06-11 07:31:54 | Alex.Willmer | set | recipients:
+ Alex.Willmer, pitrou, christian.heimes |
2019-06-11 07:31:54 | Alex.Willmer | set | messageid: <1560238314.91.0.848193222462.issue37210@roundup.psfhosted.org> |
2019-06-11 07:31:54 | Alex.Willmer | link | issue37210 messages |
2019-06-11 07:31:54 | Alex.Willmer | create | |
|