How to figure out if the platform is 32bit or 64bit?
Larry Bates
larry.bates at websafe.com`
Tue Jul 15 19:06:43 EDT 2008
kjhishere at gmail.com wrote:
> I need to know if I'm running on 32bit or 64bit ... so far I haven't
> come up with how to get this info via python. sys.platform returns
> what python was built on ... but not what the current system is.
>
> I thought platform.uname() or just platform.processor() would have
> done it, but python returns an empty string on windows. Any ideas?
>
> Thanks, Ken
How about sys.maxint? 64 bit returns 9223372036854775807 on 64-bit
Linux for me.
-Larry
More information about the Python-list
mailing list