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

Antoine Pitrou report at bugs.python.org
Tue Dec 21 19:36:07 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> Adding a warning sounds like a good idea.  Is it reasonable to include
> a recommended cross-platform approach in the platform doc, like either
> the sys.maxsize test or the struct.calsize("P") test (which is used as
> a default fallback in platform.architecture)?

Yes.

>   Are there any currently supported platforms where either of those
> wouldn't work?

No. I think even on fringe platforms it is unlikely for size_t to not
reflect the native pointer width (although it is theoretically
possible).

----------

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


More information about the Python-bugs-list mailing list