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
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
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
-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
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(
> > 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
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
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
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
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
>> 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
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
[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
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
[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
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()
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
17 matches
Mail list logo