[issue2745] Add support for IsWow64Process

2010-09-09 Thread R. David Murray
R. David Murray added the comment: See also Issue7860. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue2745] Add support for IsWow64Process

2010-09-08 Thread Brian Curtin
Brian Curtin added the comment: os.environ["PROCESSOR_ARCHITEW6432"] will tell you the true underlying processor architecture when under WOW. Therefore, if you find that this variable exists, you are under WOW. Example, on my 64-bit machine with a 32-bit compiled Python: Python 3.1.2 (r312:7

[issue2745] Add support for IsWow64Process

2010-09-08 Thread Pete Bartlett
Pete Bartlett added the comment: Hi, I am a Python user seeking an implementation of iswow64 and found this tracker. Unfortunately I don't think Martin's suggested alternative approach works. os.environ["PROCESSOR_ARCHITECTURE"] returns "x86" on my system when run from a 32-bit python, even

[issue2745] Add support for IsWow64Process

2008-05-03 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: One reason for IsWow64Process is that it allows to determine the wow-ness of a different process, which is e.g. needed to display the asterisk in the process viewer. This reason indeed doesn't apply to Python, and your patch doesn't expose th

[issue2745] Add support for IsWow64Process

2008-05-03 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I'm not sure if that is suggesting MS had no reason to add that API function, or those reasons don't apply to users of Python, but as its clear there is significant resistance I'm rejecting this report. -- resolution: -> rejected statu

[issue2745] Add support for IsWow64Process

2008-05-03 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> 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"

[issue2745] Add support for IsWow64Process

2008-05-02 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: As per a thread on python-dev, I offered to add sys.iswow64process. I'm attaching a patch that does this (including news, docs and tests). I'm adding Martin to the nosy list as he has expressed reservations ("It sounds like clutter of the sy