struct.unpack on 64-bit platforms

Jorgen Grahn grahn+nntp at snipabacken.dyndns.org
Thu Jun 29 15:33:00 EDT 2006


On 22 Jun 2006 09:30:26 -0700, Nadav Samet <thesamet at gmail.com> wrote:
...
> But apparently, on 64-bit platforms it tries to read 64-bit unsigned
> integer (since
> that's what the C Type unsigned long means on 64-bit platforms).

On /some/ 64-bit platforms. Others let unsigned long be 32-bit and introduce
the 64-bit 'long long' types (and 64-bit pointers).

The term "64-bit", like "32-bit" before it, is too vague to use in technical
discussions, IMHO.

/Jorgen

-- 
  // Jorgen Grahn <grahn@        Ph'nglui mglw'nafh Cthulhu
\X/     snipabacken.dyndns.org>  R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list