Stefan Krah added the comment:

"Py_buffer view" needs to go into the exporting object.  That object needs  a 
getbufferproc().  That getbufferproc() can use  PyBuffer_FillInfo() to fill in 
the view that is now kept alive because it's in the object.

The object then supports the buffer protocol and memoryviews can be created 
automatically from the Python level without any further C code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to