Re: How to tell machines endianism.

2006-08-15 Thread Jean-Paul Calderone
On 15 Aug 2006 10:06:02 -0700, KraftDiner <[EMAIL PROTECTED]> wrote: >How can you tell if the host processor is a big or little endian >machine? > sys.byteorder Jean-Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: How to tell machines endianism.

2006-08-15 Thread Steve Holden
KraftDiner wrote: > How can you tell if the host processor is a big or little endian > machine? > One possible way is to use the struct module to encode an integer value in native and little-endian modes and see if the result comes out the same or different. regards Steve -- Steve Holden

How to tell machines endianism.

2006-08-15 Thread KraftDiner
How can you tell if the host processor is a big or little endian machine? -- http://mail.python.org/mailman/listinfo/python-list