This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pcb21
Recipients loewis, mhammond, pcb21
Date 2010-09-08.09:54:48
SpamBayes Score 9.305889e-13
Marked as misclassified No
Message-id <1283939691.52.0.432379473375.issue2745@psf.upfronthosting.co.za>
In-reply-to
Content
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 though if I look at my "real" environment I see 

D:\>echo %PROCESSOR_ARCHITECTURE%
AMD64

i.e it appears that Windows is passing "false information", if you will, to whatever populates os.environ in 32-bit windows.

Perhaps Mark's patch should be resurrected. Or is there a further way to get this information?

[My Python version information:
D:\>python
ActivePython 2.6.5.12 (ActiveState Software Inc.) based on
Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit (Intel)] on win32
]
History
Date User Action Args
2010-09-08 09:54:51pcb21setrecipients: + pcb21, loewis, mhammond
2010-09-08 09:54:51pcb21setmessageid: <1283939691.52.0.432379473375.issue2745@psf.upfronthosting.co.za>
2010-09-08 09:54:49pcb21linkissue2745 messages
2010-09-08 09:54:48pcb21create