[Numpy-discussion] Array of PyObject or strings

Nicolas Pernetty nicopernetty at yahoo.fr
Fri Jun 24 17:49:54 CDT 2005


Hello,

I'm currently in the process of switching from Numeric to numarray but
have a problem with array of strings.

It seems that numarray (with its strings module) only accept array of
fixed-length strings but the problem is that I got an array that I'm
filling on demand, and I don't know beforehand how big the strings will
be.

With Numeric, I use array of PyObject (performance is not an issue here)
and it seems to have disappear with numarray.
Can anyone confirm this ?

And how could I manage array of strings with arbitrary lenght ? (except
the obvious solution of defining a big enough lenght at the beginning,
but I don't like it).

Thanks




More information about the Numpy-discussion mailing list