Michael Felt added the comment: There are so many places where there are references to where 32-bit and 64-bit are referred to - and, in particular, the value of os.uname()[4]
For the discussion I went back to 32-bit Python on AIX A) michael@x071:[/data/prj/python/archive/Python-2.7.3]python Python 2.7.3 (default, Sep 26 2013, 20:43:10) [C] on aix5 Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> platform.platform() 'AIX-1-00C291F54C00-powerpc-32bit' >>> import os >>> os.uname()[4] '00C291F54C00' >>> import sys >>> sys.maxsize 2147483647 B) root@x066:~# python Python 2.7.3 (default, Mar 14 2014, 12:37:29) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> platform.platform() 'Linux-3.2.0-4-powerpc64-ppc64-with-debian-7.8' >>> import os >>> os.uname()[4] 'ppc64' >>> import sys >>> sys.maxsize 2147483647 >>> The data comes from the same hardware - just different OS. re: os.uname()[4] and platform.platform() for AIX os.uname()[4] says next to nothing - the only bit relavant to the "machine" are the letters C4 and those are likely to be found on any POWER 32 and 64-bit (no longer have direct access to 32-bit hardware so must trust the documentation on that one) - for AIX platform.platform() does give proper machine and interpreter size. For Linux (debian in this case) os.uname()[4] identifies the hardware platform, and platform.platform() "looks" 64-bit to me, but sys.maxsize clearly shows this is 32-bit. I am willing to work on a patch - even digging on the POWER Linux side as well - but to write a patch the desired output is needed. And, I would suggest replacing the -m output with either -M or -p output: michael@x071:[/data/prj/python/archive/Python-2.7.3]uname -m -M 00C291F54C00 IBM,8203-E4A michael@x071:[/data/prj/python/archive/Python-2.7.3]uname -m -p 00C291F54C00 powerpc Again - what is the preferred output. IMHO - platform.platform() comes very close for what I would be expecting. AIX (noise) powerpc 32bit or AIX (noise) powerpc 64bit Comments? (and has this ever been discussed/specified in a PEP? In another discussion someone mentioned something about a wheel specification - but that refers back to distutils and IMHO this is "core" first, and distutils (should be) following) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18987> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com