[NumPy-Tickets] [NumPy] #1380: endianess is not set correctly for HP-UX Itanium

NumPy Trac numpy-tickets@scipy....
Thu Feb 4 09:10:48 CST 2010


#1380: endianess is not set correctly for HP-UX Itanium
----------------------------------+-----------------------------------------
 Reporter:  neinhues              |       Owner:  somebody  
     Type:  defect                |      Status:  needs_work
 Priority:  normal                |   Milestone:  1.5.0     
Component:  numpy.core            |     Version:  1.4.0     
 Keywords:  endianess HP-UX IA64  |  
----------------------------------+-----------------------------------------

Comment(by neinhues):

 Replying to [comment:3 oliphant]:
 > Why aren't we just checking for endian-ness or using sys.byteorder at
 compile time?
 import struct
 if ord(struct.pack('L', 1)[0]):
     print 'little'
 else:
     print 'big'

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1380#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list