determine 32 or 64 bit architecture with python 2.2

"Martin v. Löwis" martin at v.loewis.de
Wed Jun 20 07:12:15 CEST 2007


Kai Rosenthal schrieb:
> how can I determine the architecture (32 or 64bit) with python 2.2 on
> Windows or Unix (AIX, Solaris) OS, without the modul platform?

On Windows, the architecture is always 32-bit, as Python 2.2 does not
support Win64. On Unix, looking for sys.maxint is enough for AIX
and Solaris.

Regards,
Martin



More information about the Python-list mailing list