[Numpy-discussion] Is this a bug?
Charles R Harris
charlesr.harris@gmail....
Mon May 26 16:17:28 CDT 2008
On Mon, May 26, 2008 at 2:25 PM, Charles R Harris <charlesr.harris@gmail.com>
wrote:
>
>
> 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.
>
It's a bug introduced in r5080 by, ahem, yours truly. And I thought I had it
fixed. Off to get it right.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080526/0a367bea/attachment.html
More information about the Numpy-discussion
mailing list