[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

Ronald Oussoren report at bugs.python.org
Sat Mar 12 23:50:06 CET 2011


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

IMHO the change to 'bits' is bogus, it is supposed to return the bit-size of the executable, not that of the currently running executable.

I'd return all executable bitsizes in bits as '32bit', '64bit' or '32bit,64bit' (as appropriate) and only include the machine architectures in the linkage result.  

And finally the executable file format is 'Mach-O', not 'Mach'.

I can provide an updated patch if Marc-Andre agrees that this would be a usefull change.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10735>
_______________________________________


More information about the Python-bugs-list mailing list