➜

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.

作者 belopolsky
收信人 belopolsky, docs@python, ncoghlan, pitrou, skrah
日期 2012-08-30.17:30:01
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1346347802.95.0.585302484332.issue15821@psf.upfronthosting.co.za>
In-reply-to
内容
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?
历史
日期 用户 动作 参数
2012-08-30 17:30:02belopolsky修改recipients: + belopolsky, ncoghlan, pitrou, skrah, docs@python
2012-08-30 17:30:02belopolsky修改messageid: <1346347802.95.0.585302484332.issue15821@psf.upfronthosting.co.za>
2012-08-30 17:30:02belopolsky链接issue15821 messages
2012-08-30 17:30:02belopolsky创建