[SciPy-Dev] sparse bool dtype support

Pauli Virtanen pav at iki.fi
Thu May 30 17:26:08 EDT 2013


Blake Griffith <blake.a.griffith <at> gmail.com> writes:
>  <at> Pauli, changing the order of the INSTANTIATE_ALL definition by
putting npy_bool_wrapper first actually did fix things :) I'm not sure why
order matters here, yet. 

That's a bit surprising, looking at the SWIG output shows that it tries
pyarray_cancastsafely for each type in template order, so it sort of makes
sense. I'm not sure if relying on this behavior is intended in swig, or if
typemaps are supposed to match exactly.




More information about the SciPy-Dev mailing list