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 lemburg
Recipients lemburg, ned.deily, pitrou, ronaldoussoren
Date 2017-02-20.19:17:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487618233.04.0.564227180292.issue10735@psf.upfronthosting.co.za>
In-reply-to
Content
I think there's a misunderstanding in what platform.architecture() is meant for. The purpose is to find out more details about the executable you pass to it, e.g. whether it's a 32-bit or 64-bit binary, or whether it's an ELF or PE binary. And it's a best effort API, just as most other platform APIs - this is also the reason why most of them have parameters available to modify the default return values.

It doesn't work with multi-architecture executables. We'd need a new API for this.

Regarding returning multiple architectures in the linkage return value: I'm not sure whether that's a good idea. The architectures are not necessarily of different linkage types. In fact on Macs, the correct values is "Mach-O". The API should probably return this instead of the default empty string.
History
Date User Action Args
2017-02-20 19:17:13lemburgsetrecipients: + lemburg, ronaldoussoren, pitrou, ned.deily
2017-02-20 19:17:13lemburgsetmessageid: <1487618233.04.0.564227180292.issue10735@psf.upfronthosting.co.za>
2017-02-20 19:17:13lemburglinkissue10735 messages
2017-02-20 19:17:12lemburgcreate