Detecting 64bit vs. 32bit Linux

Robert Kern robert.kern at gmail.com
Mon Jul 10 09:40:09 EDT 2006


Michael Yanowitz wrote:
>   The one thing I observed (just an observation) is that:
> a) on 32-bit machines:
>     sizeof(int)  = 32
>     sizeof(long) = 32
> b) on 64-bit machines:
>     sizeof(int)  = 32
>     sizeof(long) = 64
> 
>     This in C and Python.

As I've said previously in this thread, not all systems work like that. 
Specifically, on Win64 sizeof(long) == 32.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list