[NumPy-Tickets] [NumPy] #1972: numpy.fromstring('', sep = ' ') returns array([-1]) instead of array([])
NumPy Trac
numpy-tickets@scipy....
Thu Nov 3 01:59:59 CDT 2011
#1972: numpy.fromstring('', sep = ' ') returns array([-1]) instead of array([])
--------------------+-------------------------------------------------------
Reporter: nitro | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.6.0
Keywords: |
--------------------+-------------------------------------------------------
>>> import numpy
>>> numpy.fromstring('', sep = ' ')
array([-1.])
>>> numpy.version.version
'1.6.1'
using prebuilt windows binaries.
I'd except numpy.fromstring to return array([]) there instead of the
arbitrary -1 value.
There's no way to tell if the string was really "-1" except parsing the
data myself.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1972>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list