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

Christian Heimes lists at cheimes.de
Tue Feb 12 03:53:25 EST 2008


Jon wrote:
> Can someone tell me an idiom to choose the right one?

You can check the size of a void pointer with ctypes:

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

Christian




More information about the Python-list mailing list