[Numpy-discussion] Testing the python buffer protocol (bf_getbuffer / tp_as_buffer)
torgil.svensson at gmail.com
Fri Dec 16 21:20:22 EST 2011
What happens if you use
On Sat, Dec 17, 2011 at 1:41 AM, Soeren Sonnenburg <sonne at debian.org> wrote:
> I've implemented the buffer protocol
> (http://www.python.org/dev/peps/pep-3118/) for some matrix class and
> when I manually call PyObject_GetBuffer on that object I see that I get
> the right matrix.
> Now I'd like to see numpy use the buffer protocol of my class. Does
> anyone know how to test that? What do I need to write, just
> (that doesn't call the buffer function though - so it must be sth else)?
> Any ideas?
> For the one fact about the future of which we can be certain is that it
> will be utterly fantastic. -- Arthur C. Clarke, 1962
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
More information about the NumPy-Discussion