[Numpy-discussion] Automatic string length in recarray
pgmdevlist at gmail.com
Wed Nov 4 13:20:19 EST 2009
On Nov 4, 2009, at 11:35 AM, Thomas Robitaille wrote:
> Pierre GM-2 wrote:
>> As a workwaround, perhaps you could use np.object instead of np.str
>> while defining your array. You can then get the maximum string length
>> by looping, as David suggested, and then use .astype to transform
> I tried this:
> but I get a TypeError:
Confirmed, it's a bug all right. Would you mind opening a ticket ?
I'll try to take care of that in the next few days.
More information about the NumPy-Discussion