[issue15986] memoryview: expose 'buf' attribute

Martin Panter report at bugs.python.org
Thu Jul 31 13:29:50 CEST 2014


Martin Panter added the comment:

This issue was linked from <https://mail.python.org/pipermail/python-dev/2012-September/121781.html>. I was looking for ways to pass read-only memory views into “ctypes” without copying memory, and came across that thread. Assuming this “buf” attribute points to the memory of the memory view, it could then be passed to “ctypes.c_void_p” or “_CData.from_address”.

----------

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


More information about the Python-bugs-list mailing list