[New-bugs-announce] [issue29605] Python2.7-32 misreports architecture on macOS.

Marc Culler report at bugs.python.org
Mon Feb 20 08:13:49 EST 2017


New submission from Marc Culler:

On macOS, the 32 bit python 2.7 reports its architecture as '64bit' in platform.architecture().  Note that the 32 bit Python versions 3.4, 3.5 and 3.6 all correctly report '32bit'.

$ python-32
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()[0]
'64bit'
>>> import sys
>>> sys.maxsize > 2**32
False

----------
components: macOS
messages: 288200
nosy: culler, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Python2.7-32 misreports architecture on macOS.
versions: Python 2.7

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


More information about the New-bugs-announce mailing list