Message169472
I've updated test_indirect.py to print all memoryview fields and cleaned up the _testbuffer patch a little. Note this code that is needed to prevent a memory leak:
+ /* PyMemoryView_FromBuffer ignores info.obj. Add it explicitely. */
+ if (view != NULL)
+ ((PyMemoryViewObject *)view)->view.obj = info.obj;
Shouldn't PyMemoryView_FromBuffer() copy non-NULL obj from Py_buffer? |
|
| Date |
User |
Action |
Args |
| 2012-08-30 17:30:02 | belopolsky | set | recipients:
+ belopolsky, ncoghlan, pitrou, skrah, docs@python |
| 2012-08-30 17:30:02 | belopolsky | set | messageid: <[email protected]> |
| 2012-08-30 17:30:02 | belopolsky | link | issue15821 messages |
| 2012-08-30 17:30:02 | belopolsky | create | |
|