<div dir="ltr"><div><div>Dear Python Docs:</div><div><br></div></div>The struct library has table with format values for pack and unpack.<div>In section: 7.1.2.1. Byte Order, Size, and Alignment</div><div><br></div><div>The big endian and little endian characters are reversed in the table.</div><div><br></div><div>'>' should be little endian, just like the character looks.</div><div>'<' should be big endian, just like the character.</div><div><br></div><div>I have verified that this is the correct behavior after use the wrong one in my program and wondering why I was seeing so many large fluctuations in my plots. I had wasted many day's rewiring my prototype to get rid of the noise.  It turned out it was just the byte order of my 16bit data what was getting misinterpreted.</div><div><br></div><div>I found the problem, when I was attempting to write a WAV format file, which is big endian and it was coming out backwards!</div><div><br></div><div>To verify my assertion:</div><div>## hex 16 bit number is the bytes for H and L, where 'H' is MS byte</div><div>struct.pack('<H',0x484c)<br></div><div># should return: 'b'LH' which is big endian, 'H' is at the end. </div><div><br></div><div><div>struct.pack('>H',0x484c)<br></div><div># should return: 'b'HL' </div></div><div><br></div><div>Thank you for your hard work.</div><div><br></div><div>Kind regards,</div><div>Tom Belpasso</div><div>Integrated Vision</div></div>