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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29605>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to