[CentralOH] Python Install Windows 7
brian.curtin at gmail.com
Mon Aug 22 16:38:47 CEST 2011
On Mon, Aug 22, 2011 at 09:28, Mark Erbaugh <mark at microenh.com> wrote:
> I just installed Python 2.7.2 using the python-2.7.2.amd64.msi installer
> from www.python.org onto a machine with a brand new install of Windows 7
> Home Premium 64-bit, but it looks like the python that was installed is
> 32-bit. Idle's logon message is:
> Python 2.7.2 (default, Jun 12 2011 14:24:46) [MSC v.1500 64bit (AMD 64)] on
> and sys.maxint reports 2147483647
> Shouldn't that have installed a 64-bit version of Python?
sys.maxint corresponds to the int type, and keep in mind that 2.x has both
distinct int and long types. sys.maxsize is what you'd want to look at, and
on a 64-bit install it will be 9223372036854775807L.
You could also look at the value returned by platform.architecture() - the
first value of the tuple will be "32bit" or "64bit" for the architecture the
binary was compiled for. The header line when you open the interpreter also
shows the architecture Python was compiled for (inside those brackets).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentralOH