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

Re: How to figure out if the platform is 32bit or 64bit?

P: n/a
Trent Mick wrote:
Manuel Vazquez Acosta wrote:
Hash: SHA1

Just test for maxint value:

from sys import maxint
if maxint >33:
print "more than 32 bits" # probably 64
print "32 bits"

I believe that was already suggested in this thread. That test will
just tell you if the Python *build* is 32-bit or 64-bit. If the answer
is 32-bit, then that doesn't tell you if this is a 32-bit Python
running on a 64-bit OS.

have you tried platform.architecture()?
Jul 29 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.