Lisandro Dalcin, 25.08.2010 22:50:
> This is from my own code (mpi4py):
>
> from array import array as arraytype
> ary = arraytype('i', [0])
>
> Thanks to the special handling of string literals under -2, this code
> works (at runtime) in both Python 2 and Python 3...
>
> Howerver, when using cython -3, I get a failure under Python 2:
>
> TypeError: array() argument 1 must be char, not unicode

That's a NumPy bug. Unicode strings should be valid string input also in 
Python 2.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to