Message98890
When running 32-bit Python on a 64-bit version of Windows, therefore running the process in WOW64 mode, platform.machine returns a misleading value. When running in WOW64, the processor architecture is masked to appear as "x86" when the machine is actually "AMD64" (which you see on a 64-bit app on 64-bit OS).
The change involves looking at an environment variable only set on WOW64 processes to see the native architecture. See http://blogs.msdn.com/david.wang/archive/2006/03/26/HOWTO-Detect-Process-Bitness.aspx
The patch does not include any test, as I'm not really sure how you could test this without using the change itself to figure out when it should be tested. Suggestions would be appreciated. |
|
Date |
User |
Action |
Args |
2010-02-05 18:07:50 | brian.curtin | set | recipients:
+ brian.curtin |
2010-02-05 18:07:50 | brian.curtin | set | messageid: <1265393270.5.0.356323623138.issue7860@psf.upfronthosting.co.za> |
2010-02-05 18:07:49 | brian.curtin | link | issue7860 messages |
2010-02-05 18:07:48 | brian.curtin | create | |
|