What is the difference between 32 and 64 bit Python on Windows 7 64 bit?

Sturla Molden sturla.molden at gmail.com
Mon May 12 20:05:45 EDT 2014


On 11/05/14 08:56, Ross Gayler wrote:

> Is that true?I have spent a couple of hours searching for a definitive
> description of the difference between the 32 and 64 bit versions of
> Python for Windows and haven't found anything.

Why do you care if a Python int object uses 32 or 64 bits internally? 
Python 2.x will automatically switch to long when needed. The size of 
the Python integer is an internal implementation detail you will not 
notice. Python knows when to use a long instead of an int. Python 3.x 
does not even have a fixed-size integer.

64 bit Python is 64 bit Python, even on Windows. The difference between 
32 bit and 64 bit Python is what you would expect: The size of a C 
pointer is 64 bits, and the virtual address space is much larger (in 
general not 2**63-1 bytes, but some OS dependent value).

Sturla






More information about the Python-list mailing list