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
Nicolas Pernetty wrote:
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 ?
It's in numarray.objects . -- Robert Kern rkern@ucsd.edu "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter
On Fri, 24 Jun 2005 23:12:07 -0700, Robert Kern <rkern@ucsd.edu> wrote :
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 ?
It's in numarray.objects .
Right ! haven't seen it in the doc, sorry. Anyway it's what I was looking for. Regards
participants (2)
-
Nicolas Pernetty -
Robert Kern