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

2008-08-01 Thread Paul McNett
Gary Josack wrote: Trent Mick wrote: Manuel Vazquez Acosta wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just test for maxint value: from sys import maxint if maxint >> 33: print "more than 32 bits" # probably 64 else: print "32 bits" I believe that was already suggested in t

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

2008-07-28 Thread Gary Josack
Trent Mick wrote: Manuel Vazquez Acosta wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just test for maxint value: from sys import maxint if maxint >> 33: print "more than 32 bits" # probably 64 else: print "32 bits" I believe that was already suggested in this thread. That tes

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

2008-07-28 Thread Trent Mick
Manuel Vazquez Acosta wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just test for maxint value: from sys import maxint if maxint >> 33: print "more than 32 bits" # probably 64 else: print "32 bits" I believe that was already suggested in this thread. That test will just

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

2008-07-27 Thread Manuel Vazquez Acosta
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just test for maxint value: from sys import maxint if maxint >> 33: print "more than 32 bits" # probably 64 else: print "32 bits" Best regards, Manuel. Trent Mick wrote: > norseman wrote: >> >> > > I need to know if I'm running on

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

2008-07-25 Thread Trent Mick
norseman 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(

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

2008-07-16 Thread norseman
> > 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

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

2008-07-16 Thread Fredrik Lundh
Tim Golden wrote: This is included in the latest pywin32-211 as well: import win32process print win32process.IsWow64Process () on the other hand, "ctypes" is only an import away if you have a current Python... -- http://mail.python.org/mailman/listinfo/python-list

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

2008-07-16 Thread Tim Golden
Fredrik Lundh wrote: Ken Hartling wrote: > Thanks .. but I want to find out if the system is "running on 64bit" > even when the interpreter is a 32-bit build executable ("what python > was built on"). platform.architecture() and platform() in general > seems to only be looking at the build

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

2008-07-16 Thread Fredrik Lundh
Ken Hartling wrote: > Thanks .. but I want to find out if the system is "running on 64bit" > even when the interpreter is a 32-bit build executable ("what python > was built on"). platform.architecture() and platform() in general > seems to only be looking at the build executable You can pass i

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

2008-07-16 Thread Ken Hartling
Thanks .. but I want to find out if the system is "running on 64bit" even when the interpreter is a 32-bit build executable ("what python was built on"). platform.architecture() and platform() in general seems to only be looking at the build executable and what it was built for on windows (sorry, I

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

2008-07-15 Thread Martin v. Löwis
>> 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

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

2008-07-15 Thread Larry Bates
David Lees wrote: [EMAIL PROTECTED] 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.process

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

2008-07-15 Thread David Lees
[EMAIL PROTECTED] 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 don

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

2008-07-15 Thread John Machin
On Jul 16, 6:10 am, [EMAIL PROTECTED] 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

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

2008-07-15 Thread Larry Bates
[EMAIL PROTECTED] 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 don

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

2008-07-15 Thread Benjamin Kaplan
On Tue, Jul 15, 2008 at 4:10 PM, <[EMAIL PROTECTED]> 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()

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

2008-07-15 Thread kjhishere
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