[Numpy-discussion] Is this a bug?
Charles R Harris
charlesr.harris@gmail....
Mon May 26 15:25:13 CDT 2008
On Mon, May 26, 2008 at 2:15 PM, Robert Kern <robert.kern@gmail.com> wrote:
> 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')
>
Since it is a compatibility type, we should probably check to be sure what
it is supposed to do. I think Travis would be the one to ask.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080526/da070e96/attachment.html
More information about the Numpy-discussion
mailing list