O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

platform

The platform module contains functions for querying various aspects of the underlying platform on which Python is running. Unless specifically noted, these functions are available with all versions of Python.

architecture([executable, [bits [, linkage]]])

Returns a tuple (bits, linkage) containing information about how Python was built, where bits is a string containing information about the word size (for example, '32bit' or '64bit') and linkage contains information about linking of the Python executable. The executable parameter specifies a path to the Python interpreter and is sys.executable by default. The bits and linkage parameters specify default values to be returned if no information is available.

dist([distname [, version

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required