I have recently checked some of my python+ctypes code on python25 to find it did not work. After quite some time, I found out that ctypes.c_longlong is 32 bits.
I checked on two different machines (both edgy on x86). To reproduce the result, just execute :
Binary package hint: python2.5
I have recently checked some of my python+ctypes code on python25 to find it did not work. After quite some time, I found out that ctypes.c_longlong is 32 bits.
I checked on two different machines (both edgy on x86). To reproduce the result, just execute :
python2.5 -c "from ctypes import c_longlong, sizeof; print sizeof(c_longlong)"
It will prints 4 instead of 8.
A manually installed python prints 8, so there is a problem in the packaging somewhere. Note that this problem is not present in python2.4-ctypes.