Re: NumPy chararray and whitespace

2008-06-18 Thread Robert Kern
OKB (not okblacke) wrote: Hi. I'm trying to use NumPy's chararray class for an array of characters. I notice that when I try to set a chararray element to a space, it actually gets set to an empty string. I found some pages online indicating that the chararray strips trailing whitespace

NumPy chararray and whitespace

2008-06-18 Thread OKB (not okblacke)
Hi. I'm trying to use NumPy's chararray class for an array of characters. I notice that when I try to set a chararray element to a space, it actually gets set to an empty string. I found some pages online indicating that the chararray strips trailing whitespace from its values.