[NumPy-Tickets] [NumPy] #1892: object arrays converted to string arrays of 'S' dtype have default length. (was: numpy.vectorize truncates strings)
NumPy Trac
numpy-tickets@scipy....
Sat Aug 13 13:58:25 CDT 2011
#1892: object arrays converted to string arrays of 'S' dtype have default length.
---------------------------------------+------------------------------------
Reporter: ehiggs | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: vectorize string truncate |
---------------------------------------+------------------------------------
Changes (by charris):
* version: 1.4.1 => devel
Comment:
Looks like numpy needs to know how long the string for the object arrays
is going to be before creation and falls back to a default size instead of
trying to determine it.
The default size is a bit larger on my machine with current master:
{{{
In [2]: array(array(['0123456789'*10],dtype=object),dtype='S')
Out[2]:
array(['0123456789012345678901234567890123456789012345678901234567890123'],
dtype='|S64')
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1892#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list