[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
Stefan Krah
report at bugs.python.org
Tue Jul 5 12:49:41 CEST 2011
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
I've uploaded a revised version that addresses several suggestions. I think
we have agreement on those now:
- Officially ditch smalltable.
- Comment static storage fields inside PyMemoryViewObject.
- Improve refcounting in PyMemoryView_FromBuffer()/PyMemoryView_FromObject().
- Increment mbuf refcount in memory_getbuf().
- Create separate sections for managedbuffer and memoryview.
Still open:
- Update documentation.
- Should PyManagedBuffer be private to this file? Do we need mbuf_new()?
- Add test to _testcapimodule.c. I wrote a small test for the problematic
case in PyMemoryView_GetContiguous(), and it indeed returns an unaltered
view. I suggest that we leave the NotImplementedError for now and handle
that in a separate issue.
- Flag handling.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10181>
_______________________________________
More information about the Python-bugs-list
mailing list