[issue2745] Add support for IsWow64Process

Martin v. Löwis report at bugs.python.org
Sat May 3 09:29:25 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

I think this can be just as well done with (untested, as I don't have
access to a Windows system right now)

def iswow64():
    if platform.getarchitecture()[0] == '64-bit':return False
    return os.environ["PROCESSOR_ARCHITECTURE"] != "x86"

IOW, it's wow64 iff it's a 32-bit Python not running on an x86 machine.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2745>
__________________________________


More information about the Python-bugs-list mailing list