title: What endianness does Python use to write into files?
body: <p>When using file.write() with 'wb' flag does Python use big or litte endian, or sys.byteorder value ? how can i be sure that the endianness is not random, I am asking because I am mixing ASCII and binary data in the same file and for the binary data i use struct.pack() and force it to little endian, but I am not sure what happen to the ASCII data !</p>
  
  <p>Edit 1: since the downvote, I'll explain more my question !</p>
  
  <p>I am writing a file with ASCII and binary data, in a x86 PC, the file will be sent over the network to another computer witch is not x86, a PowerPC, witch is on Big-endian, how can I be sure that the data will be the same when parsed with the PowerPC ?</p>
  
  <p>Edit 2: still using Python 2.7</p>