idiom to ask if you are on 32 or 64 bit linux platform?

Jon jonathan.wright at gmail.com
Tue Feb 12 04:23:50 EST 2008


Christian Heimes wrote:
> You can check the size of a void pointer with ctypes:

>>> import ctypes
>>> ctypes.sizeof(ctypes.c_void_p) * 8

And Matt Nordhoff wrote:

>>> import platform
>>> platform.architecture()

Thanks guys! Exactly what I was after.

-Jon




More information about the Python-list mailing list