[Numpy-discussion] Testing the python buffer protocol (bf_getbuffer / tp_as_buffer)

Pauli Virtanen pav at iki.fi
Sat Dec 17 09:29:37 EST 2011


17.12.2011 09:42, Soeren Sonnenburg kirjoitti:
> Doesn't work, complaining that the object has no __buffer__ attribute.
>
> Digging into the numpy c code it seems numpy doesn't even support the
> buffer protocol but only the deprecated (old) one
> http://docs.python.org/c-api/objbuffer.html .
[clip]

Since Numpy version 1.5, the new buffer protocol is supported.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list