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

Benjamin Kaplan benjamin.kaplan at case.edu
Tue Jul 15 16:39:31 EDT 2008


On Tue, Jul 15, 2008 at 4:10 PM, <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
> --


platform.architecture() should have it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080715/367420e7/attachment.html>


More information about the Python-list mailing list