News for hackers. Stuff that matters.
Re:Pointers.py: Bringing the hell of pointers to Python by compressedgas on Thursday March 10, 2022 @05:35PM (#30633516)
Python already has this 'hell of pointers' in the ctypes module.

Where `to_ptr(x)` is:

  ptr = ctypes.pointer(ctypes.py_object(x))
And `ptr.dereference()` is:

  ptr.contents.value