Re: Trouble Passing Array of Strings (using Numeric) to C Extension Module

2006-09-21 Thread goetzie
Travis E. Oliphant wrote: > > PyString_Check( *( ( PyObject ** )( pArray->data ) ) ); > Thank you very much Travis! My mistake is now quite obvious (and should have been right from the start). Regarding NumPy, I probably should upgrade from Numeric. It's just hard to change something that is c

Re: Trouble Passing Array of Strings (using Numeric) to C Extension Module

2006-09-20 Thread Travis E. Oliphant
goetzie wrote: > I am using Python 2.4.1 and Numeric 23.8 and running on Windows XP. I > am passing a Numeric array of strings (objects) to a C Extension module > using the following python code: Numeric 23.8 is *very* old and unsupported. Unless you absolutely have to use Numeric (then use 24

Trouble Passing Array of Strings (using Numeric) to C Extension Module

2006-09-20 Thread goetzie
I am using Python 2.4.1 and Numeric 23.8 and running on Windows XP. I am passing a Numeric array of strings (objects) to a C Extension module using the following python code: import Numeric import TestDLL# my C Extension Module a = Numeric.array(['foo', 'bar'], 'O' ) print 'a =',