[NumPy-Tickets] [NumPy] #2081: String gets truncated in asarray() in Python 3.2

NumPy Trac numpy-tickets@scipy....
Thu Mar 15 23:10:05 CDT 2012


#2081: String gets truncated in asarray() in Python 3.2
-----------------------+----------------------------------------------------
 Reporter:  taldcroft  |       Owner:  somebody   
     Type:  defect     |      Status:  needs_info 
 Priority:  normal     |   Milestone:  Unscheduled
Component:  Other      |     Version:  devel      
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by charris):

 I still can't reproduce this:


 {{{
 >>> import numpy as np
 >>> d = np.array(['a'])
 >>> np.asarray([d[0]])
 array(['a'],
       dtype='<U1')
 >>> d = np.array(['abcd'])
 >>> np.asarray([d[0]])
 array(['abcd'],
       dtype='<U4')
 >>> np.__version__
 '1.7.0.dev-0258f19'

 }}}

 I wonder if this is a bug in python 3.2.0? I'm running 3.2.1 and gcc
 4.6.1. Just to be sure it's nothing, can you remove the build and install
 directories and do a clean install.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2081#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list