4 ms·You don't even need C: ctypes.c_int.from_address(id(8)+24).value = 9by skitter 3y agoYou don't even need C: ctypes.c_int.from_address(id(8)+24).value = 9jwilk 3y agoThat works only on 64-bit systems. You need something like this instead of 24: ctypes.sizeof(ctypes.c_long) * 3ketralnis 3y agogood thinking I definitely need this useful and widely used code to be legible and platform independent