import ctypes
c_long_p = ctypes.POINTER(ctypes.c_long)
some_long = ctypes.c_long(42)
ctypes.addressof(some_long)
ctypes.cast(4300833936, c_long_p)
ctypes.cast(4300833936, c_long_p).contents
Как разыменовать ячейку памяти из ctypes python?