On 02/19/2012 08:20 AM, Brian Curtin wrote: > On Sat, Feb 18, 2012 at 21:11, Gelonida N <gelon...@gmail.com> wrote: >> On 02/18/2012 09:07 PM, Brian Curtin wrote: >>> On Sat, Feb 18, 2012 at 13:22, Gremlin <grem...@armarize.com> wrote: >>> >>> import platform >>> platform.machine() >>> >>> That will return "AMD64" on 64 bit. I don't have a 32-bit machine >>> available but I believe it returns "x86". >> This suggestion will not work for the OP. >> >> It will tell you the platform, for which python was compiled and not the >> real platform of the machine you're running on. >> >> If you installed a 32 bit version of python on a 64 bit machine You will >> get 'x86', which would be the wrong answer considering the OP's >> requirements. > > This is false. > > platform.machine() is about the the computer itself - I fixed it in > 2.6 to function properly, as it used to operate similar to > platform.architecture() due to looking in the wrong place. > platform.architecture() is about how Python was compiled.
Hmmm. I use python 2.6.4 on a 64 bit machine and get 'x86' as result. perhaps it's only fixed in the newer 2.6 releases? _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32