Message235210
_CData.from_buffer() is meant to take a writable buffer, and create a “ctypes” object that shares the same memory. So it should not release the buffer until that “ctypes” object is no longer needed.
However I don’t know the insides of memoryview() objects that well so I can’t say if the hack-the-memoryview code is correct or not. |
|
| Date |
User |
Action |
Args |
| 2015-02-01 21:52:44 | martin.panter | set | recipients:
+ martin.panter, belopolsky, pitrou, larry, Arfrever, skrah, serhiy.storchaka |
| 2015-02-01 21:52:44 | martin.panter | set | messageid: <[email protected]> |
| 2015-02-01 21:52:44 | martin.panter | link | issue22896 messages |
| 2015-02-01 21:52:44 | martin.panter | create | |
|