By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

identifying 64-bit Windows from 2.3.5?

P: n/a
If I have installed 2.3.5 from the python.org Windows installer, can
any one point me to a run-time way to identify whether I'm running on
a 32-bit vs. 64-bit version of Windows XP, given that Python itself was
built on/for a 32-bit system?

I hoped sys.getwindowsversion() was the answer, but it returns the same
platform value (2) on both 32-bit and 64-bit systems. sys.platform
("win32") and sys.maxint are both set at compile time. Things like
os.uname() aren't on Windows.

Can some Windows-savvy Pythonista point me to some way to distinguish
between these two?

Thanks,

--SK
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Steven Knight wrote:
Can some Windows-savvy Pythonista point me to some way to distinguish
between these two?


I would look at the environment variable PROCESSOR_ARCHITECTURE. On
the Win64 machine I use, its value is "IA64".

Regards,
Martin
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.