[issue22896] Don't use PyObject_As*Buffer() functions

Stefan Krah report at bugs.python.org
Sun Feb 1 21:32:24 CET 2015


Stefan Krah added the comment:

[Slow internet connection, can't use Rietveld.]

CDataType_from_buffer():

I'm not that familiar with ctypes.  What is the high level goal here?
Allocate a chunk of memory, wrap it in a memoryview and have the
memoryview release that memory when its refcount is 0?

If so, I think we desperately need direct support for that in
memoryview.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22896>
_______________________________________


More information about the Python-bugs-list mailing list