Exposing buffer interface for non-extension types?

sturlamolden sturlamolden at yahoo.no
Tue Jul 20 21:17:17 EDT 2010


On 21 Jul, 02:38, Ken Watford <kwatford+pyt... at gmail.com> wrote:

> Perhaps, but *why* is it only a pure C-level interface?

It is exposed to Python as memoryview.

If memoryview is not sufficient, we can use ctypes.pythonapi to read
the C struct.




More information about the Python-list mailing list