[Numpy-discussion] Numpy on Mac OS X python 2.6

Charles R Harris charlesr.harris@gmail....
Mon Nov 24 22:58:12 CST 2008


On Mon, Nov 24, 2008 at 9:38 PM, Charles R Harris <charlesr.harris@gmail.com
> wrote:

>
>
> On Mon, Nov 24, 2008 at 9:02 PM, David Cournapeau <cournape@gmail.com>wrote:
>
>> On Tue, Nov 25, 2008 at 12:41 PM, Charles R Harris
>> <charlesr.harris@gmail.com> wrote:
>> >
>>
>> > 1) This problem is specific to 2.6 and 2.5 works.
>>
>> Yes
>>
>> > 2) It's on Intel hardware?
>>
>> Yes.
>>
>> Here is a minimal test which shows the problem:
>>
>> import numpy as np
>> assert np.dtype('<f4').isnative
>>
>
> So what does dtype(float32).descr and dtype(float32).byteorder show?
>

Numpy gets it's byte order from the macro WORDS_BIGENDIAN defined by Python.
Try

$[charris@f9 numpy.git]$ grep -r -n WORDS_BIGENDIAN /usr/include/python2.5/*
/usr/include/python2.5/pyconfig-32.h:902:#define WORDS_BIGENDIAN 1
/usr/include/python2.5/pyconfig-32.h:905:/* #undef WORDS_BIGENDIAN */

or the OS X equivalent.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081124/bffb3948/attachment.html 


More information about the Numpy-discussion mailing list