summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorJay Bourque <jay.bourque@continuum.io>2013-04-24 21:42:15 -0500
committerJay Bourque <jay.bourque@continuum.io>2013-04-24 21:42:15 -0500
commitf231558bab5be194f3a7e57ba4c9738056d3a04d (patch)
tree685bd451992330e7d6b9ba8acf8094be0a87c2cf /numpy/core/defchararray.py
parentd0d8d1c1deb28fb2b43c7180cd0e293608b6964e (diff)
downloadnumpy-f231558bab5be194f3a7e57ba4c9738056d3a04d.tar.gz
Fix for astype('S') string truncate issue
Calling astype('S') for an array of string objects results in a string array where dtype='S64', even if the original string objects are longer than 64 characters. Add call to GetParamsFromObject() to determine maximum string object length, and use that as string dtype size.
Diffstat (limited to 'numpy/core/defchararray.py')
0 files changed, 0 insertions, 0 deletions