On 6/19/07, Kai Rosenthal <[EMAIL PROTECTED]> wrote:
> Hello,
> how can I determine the architecture (32 or 64bit) with python 2.2 on
> Windows or Unix (AIX, Solaris) OS, without the modul platform?
> Thanks for your hints, Kai

For Unix systems you can probably use os.uname() and check what
architecture the kernel is built for. For example,

[EMAIL PROTECTED] ~ $ python -c 'import os; print os.uname()[4]'
i686

As you can see, I'm on a 32 bit system.

-- 
Evan Klitzke <[EMAIL PROTECTED]>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to