What Does sys.platform Return On 64 Bit Windows Systems?

Christian Heimes lists at cheimes.de
Thu Mar 18 00:16:55 CET 2010

Tim Daneliuk schrieb:
> On older 32 bit Windows systems, sys.platform returns:  'win32'
> What does it return on 64-bit Windows systems?  I'd check myself, but
> I don't have access to 64-bit Windows.

Do you want to know if the current build of Python is a 32 or 64bit build?

>>> import struct
>>> struct.calcsize("P") * 8


More information about the Python-list mailing list