[Cython] Cython 0.16 and ndarray fields deprecation
Sturla Molden
sturla at molden.no
Thu Mar 1 18:21:29 CET 2012
On 01.03.2012 17:18, Dag Sverre Seljebotn wrote:
> I'm anyway leaning towards deprecating arr.data, as it's too different
> from what the Python attribute does.
This should be preferred, I think
&arr[0]
or
<char*> &arr[0]
The latter is exacty what arr.data will currently do in Cython (but not
in Python).
But there is code in SciPy that depends on the arr.data attribute in
Cython, such as cKDTree.
Sturla
More information about the cython-devel
mailing list