<div class="gmail_quote">2011/7/7 António Rocha <span dir="ltr"><<a href="mailto:toyze.rocha@gmail.com">toyze.rocha@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Greetings<div><br></div><div>I'm running Python (32b) in Windows7 (at 64bits) and I would like to know how can I check if my machine is a 32b or 64b in Python. Is it possible? I saw a few examples (like platform) but they only provide information about Python not the machine.</div>

<div>Thanks </div><div>Toze</div></blockquote><div><br></div><div>Running CPython compiled for 32-bit on a Windows 7 64-bit machine gives the following:</div><div><div><br></div><div>>>> platform.architecture()</div>
<div>('32bit', 'WindowsPE')</div><div>>>> platform.machine()</div></div><div>'AMD64' </div><div><br></div><div>This didn't used to be the case - it was corrected in <a href="http://bugs.python.org/issue7860">http://bugs.python.org/issue7860</a> so you may need to upgrade to get accurate information if you have an older Python installed.</div>
</div>