how many bytes in an int
Richard Brodie
R.Brodie at rl.ac.uk
Mon Aug 9 12:19:04 EDT 2004
"Grant Edwards" <grante at visi.com> wrote in message
news:41179cd2$0$8089$a1866201 at newsreader.visi.com...
>By guessing formats and calculating sizes? Or is there a way to
>ask for an N-byte integer that I missed?
If you use '<' or '>' to force endianness you automatically get 'standard'
sizes thrown in; or you can use '=' for native order. The standard sizes are
specified in the struct module documentation.
More information about the Python-list
mailing list