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 sferencik
Recipients Arfrever, eric.araujo, jkloth, pitrou, sferencik, tarek
Date 2013-09-11.07:26:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Unfortunately, I don't have a patch.

Some thoughts:

To discover a 32-bit interpreter running on a 64-bit system, we could use
platform.architecture(), which returns
    >>> platform.architecture()
    ('32bit', 'ELF')

What then, though? How do you turn '32bit' to 'linux-i386'? The naive solution
would be to hard-code this as an exception:
- if 32-on-64, use 'i386'
- otherwise, use os.uname()[4], i.e. 'i386' or 'x86_64'

I suspect that's ultra naive, though. The get_platform() code deals with a
number of Unix-like systems (Solaris, AIX, ...). Even if we accepted this
solution only for Linux, leaving the other OSs broken, is 'i386' always the
right answer, or would 'i586' or similar be appropriate in some cases?

We could also take inspiration from Mac OS (_osx_support.get_platform_osx()),
which basically ignores os.uname()[4] completely and constructs the return value
from a set of hard-coded values ('i386' being one of them).

What do you think?
Date User Action Args
2013-09-11 07:26:49sferenciksetrecipients: + sferencik, pitrou, tarek, jkloth, eric.araujo, Arfrever
2013-09-11 07:26:48sferenciksetmessageid: <>
2013-09-11 07:26:48sferenciklinkissue18987 messages
2013-09-11 07:26:48sferencikcreate