[Cython] Buffer interface to boolean arrays with cast=True on Python 2.5 failing

Wes McKinney wesmckinn at gmail.com
Mon Oct 24 21:26:03 CEST 2011


I've been using

ndarray[uint8_t, cast=True] bool_arr

to work with dtype=bool arrays in Cython lately. When testing using
Python 2.5 / NumPy 1.6.1 on Windows, I'm getting "unknown dtype code
in numpy.pxd (0)". Everything works fine with Python 2.6/2.7 and NumPy
1.6.1. This is with Cython 0.15.1.

Any advice or do I have to (very unhappily) work around this?

thanks,
Wes


More information about the cython-devel mailing list