[Numpy-discussion] Is this a bug?
Robert Kern
robert.kern@gmail....
Mon May 26 15:15:02 CDT 2008
On Mon, May 26, 2008 at 3:13 PM, Robert Kern <robert.kern@gmail.com> wrote:
> numpy 1.0 had the behaviour you describe.
>
>
>>>> import numpy
>>>> numpy.__version__
> '1.0'
>>>> numpy.array('123', dtype='c')
> array(['1', '2', '3'],
> dtype='|S1')
Of course, this has its own inconsistencies:
>>> numpy.dtype('c')
dtype('|S1')
>>> numpy.array('123', dtype='|S1')
array('1',
dtype='|S1')
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion
mailing list