I have been working on extending a Python application using ctypes to call a shared library in C code.
I have a boolean variable in Python which I would like to check periodically in an infinite loop in the C code to see if it changes. Is there a way to send the memory address of the Python variable to the C function and access the content?