3 ms·
Have a look at how Python programs can call C functions (you can load a dynamically linked library in Python): https://docs.python.org/3/library/ctypes.html ht
by amelius 6y ago
Have a look at how Python programs can call C functions (you can load a dynamically linked library in Python):
https://docs.python.org/3/library/ctypes.html https://docs.python.org/3/library/ctypes.html
You can store and manipulate C pointers within Python.
The other way around should also be possible: manipulate references to Python objects from within C.
I suppose this could be extended to Java objects, etc., and it could be based on a single API.