Re: [Numpy-discussion] Bug in rec.fromarrays ; plus one other possible bug

2009-11-25 Thread Dan Yamins
>('\x00est', ''), ('\x00est', ''), ('\x00est', ''), ('\x00est', > > ''), > >('\x00est', ''), ('\x00est', '')], > > dtype=[('A', '|S4'), ('B', '|S0')]) > > That certainly looks like a bug -- where does the \0 appear in front of > all but the first string? > Sorry, I'm not sure

Re: [Numpy-discussion] Bug in rec.fromarrays ; plus one other possible bug

2009-11-25 Thread Pauli Virtanen
ke, 2009-11-25 kello 09:48 -0500, Dan Yamins kirjoitti: > Hi, I'm writing to report what looks like a two bugs in the handling > of strings of length 0. (I'm using 1.4.0.dev7746, on Mac OSX 10.5.8. > The problems below occur both for python 2.5 compiled 32-bit as well > as python2.6 compiled 64-bi

Re: [Numpy-discussion] Bug in rec.fromarrays ; plus one other possible bug

2009-11-25 Thread John Hunter
On Wed, Nov 25, 2009 at 8:48 AM, Dan Yamins wrote: > Am I just not supposed to be working with length-0 string columns, period? But why would you want to? array dtypes are immutable, so you are saying: I want this field to be only empty strings now and forever. So you can't initialize them to b

[Numpy-discussion] Bug in rec.fromarrays ; plus one other possible bug

2009-11-25 Thread Dan Yamins
Hi, I'm writing to report what looks like a two bugs in the handling of strings of length 0. (I'm using 1.4.0.dev7746, on Mac OSX 10.5.8. The problems below occur both for python 2.5 compiled 32-bit as well as python2.6 compiled 64-bit). Bug #1: A problem arises when you try to create a record