Hacker News new | ask | show | jobs
by progval 2604 days ago
It looks like this gives you a `ctypes` pointer: https://cppyy.readthedocs.io/en/latest/basic_types.html#poin...

So you handle it like any other ctypes pointer, ie. `libc = ctypes.CDLL(find_library("c")); libc.free(ptr)`

Which is not fun in Python. So yeah, better avoid raw pointers.