NumPy chararray and whitespace
OKB (not okblacke)
brenNOSPAMbarn at NObrenSPAMbarn.net
Wed Jun 18 23:04:07 CEST 2008
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
I am really, really, hoping this is not a hard-coded, unalterable
behavior. Is there a way to get NumPy chararray to include the
characters I tell it to, without modificiation?
--OKB (not okblacke)
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
More information about the Python-list