def _darwin_current_arch ( self ) : if sys . platform == "darwin" : if sys . maxsize > 2 ** 32 : # 64bits. return platform . mac_ver ( ) [ 2 ] # Both Darwin and Python are 64bits. else : # Python 32 bits return platform . processor ( )
what different between python for windows and linux
Add Mac OS X support .
def _darwin_current_arch(self):
        """Add Mac OS X support."""
        if sys.platform == "darwin":
            if sys.maxsize > 2 ** 32: # 64bits.
                return platform.mac_ver()[2] # Both Darwin and Python are 64bits.
            else: # Python 32 bits
                return platform.processor()