[Python-checkins] r78308 - python/trunk/Doc/library/struct.rst
andrew.kuchling
python-checkins at python.org
Mon Feb 22 16:13:17 CET 2010
Author: andrew.kuchling
Date: Mon Feb 22 16:13:17 2010
New Revision: 78308
Log:
#6414: clarify description of processor endianness.
Text by Alexey Shamrin; I changed 'DEC Alpha' to the more relevant 'Intel Itanium'.
Modified:
python/trunk/Doc/library/struct.rst
Modified: python/trunk/Doc/library/struct.rst
==============================================================================
--- python/trunk/Doc/library/struct.rst (original)
+++ python/trunk/Doc/library/struct.rst Mon Feb 22 16:13:17 2010
@@ -187,9 +187,11 @@
If the first character is not one of these, ``'@'`` is assumed.
-Native byte order is big-endian or little-endian, depending on the host system.
-For example, Motorola and Sun processors are big-endian; Intel and DEC
-processors are little-endian.
+Native byte order is big-endian or little-endian, depending on the host
+system. For example, Intel x86 and AMD64 (x86-64) are little-endian;
+Motorola 68000 and PowerPC G5 are big-endian; ARM and Intel Itanium feature
+switchable endianness (bi-endian). Use ``sys.byteorder`` to check the
+endianness of your system.
Native size and alignment are determined using the C compiler's
``sizeof`` expression. This is always combined with native byte order.
More information about the Python-checkins
mailing list