Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Evan Klitzke
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 archit

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Martin v. Löwis
>> What happens when you fire up a 64-bit Python and type >> import sys; sys.maxint >> at it? > > That's not suitable, because of the differences between LP64 and LLP64 > (http://en.wikipedia.org/wiki/64-bit#64-bit_data_models ). For the systems that the OP mentioned, sys.maxint is just fine:

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Martin v. Löwis
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

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Lenard Lindstrom
David Rushby wrote: > On Jun 19, 4:28 pm, John Machin <[EMAIL PROTECTED]> wrote: >> On Jun 19, 9:17 pm, 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?

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread David Rushby
On Jun 19, 4:28 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 19, 9:17 pm, 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 hin

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread John Machin
On Jun 19, 9:17 pm, 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 What happens when you fire up a 64-bit Python and type imp

determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Kai Rosenthal
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 -- http://mail.python.org/mailman/listinfo/python-list