[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables
report at bugs.python.org
Sun Dec 19 14:56:38 CET 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> It's only a hack in the sense that platform.architecture is the
> documented interface in the std library to report "bits" and,
> unfortunately, users try to use it to determine whether running in
> 64-bit or 32-bit mode. For instance, see here:
Well, the fact that platform.architecture() returns a free-form string
suggests to me that it could return all kinds of unexpected results
depending on the system (it probably parses the output of some command).
So perhaps the platform docs should warn against this.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list