Asheesh Laroia ashe...@asheesh.org added the comment:
Hey all,
I (a person who just wandered by) think that Alexey Shamrin's suggested text is
great.
For that reason, I have turned it into a unified diff created by 'svn diff'.
I hope that would help move this bug along!
I'm attaching that
Asheesh Laroia ashe...@asheesh.org added the comment:
I'm attaching (basically) the same patch, this time against the py3k branch.
I'm open to improvements to the text. If the text is okay, please just ship
these!
Sincerely,
A dude sitting in an open space at PyCon.
--
Added file:
Alexey Shamrin sham...@gmail.com added the comment:
Good suggestions, Mark! We should do both, I think. I didn't know about
sys.byteorder before your message ;-) Thanks for education!
How about this:
Native byte order is big-endian or little-endian, depending on the host
system. For example,
Alexey Shamrin sham...@gmail.com added the comment:
Little style:
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 DEC Alpha feature
switchable
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: georg.brandl - rhettinger
nosy: +rhettinger
versions: +Python 3.2 -Python 2.5, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6414
Ezio Melotti ezio.melo...@gmail.com added the comment:
Something like Motorola and Sun processors are usually big-endian;
Intel and DEC processors are usually little-endian (or most
of/several) might be enough.
--
keywords: +easy
nosy: +ezio.melotti
priority: - low
Mark Dickinson dicki...@gmail.com added the comment:
Maybe it's better to avoid the platform-specific statements altogether,
and just point out the existence of sys.byteorder for those who want to
check the endianness of the system they're currently working on.
Or maybe just mention that the
New submission from Karl Magdsick kmagds...@hotmail.com:
In http://docs.python.org/dev/library/struct.html,
it says
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