On 26 August 2010 00:34, Stefan Behnel <[email protected]> wrote: > 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. >
No, it is not NumPy... it is the core Python stdlib array module in all 2.x versions. -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
