[NumPy-Tickets] [NumPy] #1892: numpy.vectorize truncates strings
NumPy Trac
numpy-tickets@scipy....
Wed Aug 10 10:50:06 CDT 2011
#1892: numpy.vectorize truncates strings
---------------------------------------+------------------------------------
Reporter: ehiggs | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.4.1
Keywords: vectorize string truncate |
---------------------------------------+------------------------------------
Changes (by jordigh):
* cc: jordigh@… (added)
Comment:
Attempting to diagnose this problem, I can reproduce it with the following
lines:
{{{
## Truncates to type '|S8'
array(array(['looooooool'],dtype=object),dtype='S')
## These three don't truncate
array(array(['looooooool'],dtype=object),dtype='|S10')
array(array(['looooooool']),dtype='S')
array(array(['looooooool']))
}}}
so I'm not sure if the bug is in vectorize itself or if in array. Is the
truncation above desirable?
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1892#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list