[NumPy-Tickets] [NumPy] #2081: String gets truncated in asarray() in Python 3.2
NumPy Trac
numpy-tickets@scipy....
Thu Mar 15 10:49:17 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: |
-----------------------+----------------------------------------------------
Changes (by charris):
* status: new => needs_info
Comment:
I can't duplicate this here:
{{{
$charris@f16 ~$ python3
Python 3.2.1 (default, Jul 11 2011, 18:54:42)
[GCC 4.6.1 20110627 (Red Hat 4.6.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> d = np.array(['a'])
>>> np.asarray(d[0])
array('a',
dtype='<U1')
>>> d = np.array([b'a'])
>>> np.asarray(d[0])
array(b'a',
dtype='|S1')
>>> np.__version__
'1.7.0.dev-cfee94e'
>>> d = np.array(['abcd'])
>>> np.asarray(d[0])
array('abcd',
dtype='<U4')
}}}
Can you try with latest numpy master and provide more info on the
OS/Platform, etc., if it still fails.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2081#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list