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

NumPy Trac numpy-tickets@scipy....
Thu Mar 15 16:38:22 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 taldcroft):

 I'm using linux CentOS-5 x86-64.  In my example I did

 {{{
 np.asarray([d[0]])
 }}}

 where the attempt to duplicate uses:

 {{{
 np.asarray(d[0])  # missing enclosing [] brackets
 }}}

 Here is my Python and version info:

 {{{
 (astropy32-numpydev)ccosmos$ python
 ActivePython 3.2.0.0 (ActiveState Software Inc.) based on
 Python 3.2 (r32:88445, Feb 21 2011, 11:25:11)
 [GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> np.__version__
 '1.7.0.dev-cfee94e'
 }}}

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


More information about the NumPy-Tickets mailing list