Do you mean to play bto get c_ulong(20)? That b.contents. Or do you mean, look where in memory the pointer indicates, as if it were an integer, not a pointer? This ctypes.cast(b, ctypes.c_ulong)(if the pointer fits into a long platform).
source
share