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 eryksun
Recipients Liran Ringel, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-01-02.07:49:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483343342.51.0.110463973625.issue29124@psf.upfronthosting.co.za>
In-reply-to
Content
Using platform.architecture [1] is fine here. `bits` defaults to the size of a pointer in the current process, i.e. `struct.calcsize('P') * 8`. 

On Windows, it's useless for anything except the default parameters. It doesn't call GetBinaryType [2] to distinguish 32-bit and 64-bit executables, so from a 64-bit process it will incorrectly return that a 32-bit executable is 64-bit.

[1]: https://docs.python.org/3/library/platform.html#platform.architecture
[2]: https://msdn.microsoft.com/en-us/library/aa364819
History
Date User Action Args
2017-01-02 07:49:02eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Liran Ringel
2017-01-02 07:49:02eryksunsetmessageid: <1483343342.51.0.110463973625.issue29124@psf.upfronthosting.co.za>
2017-01-02 07:49:02eryksunlinkissue29124 messages
2017-01-02 07:49:02eryksuncreate