"Sudharshan S" sudharsh@gmail.com writes:
My project uses GLib's GObject and recently I thought of adding support for executing python scripts by embedding the interpreter within the code. However there is this need to pass a GOB struct as one of the parameters to a function in the python script. How exactly do I pass non-PyObject types with the API?
The gobject wrapper probably supports converting a GObject instance to a PyGobject visible from Python. Failing that, you can always create a PyCObject (an opaque object containing a pointer) and use it to pass the pointer to your struct.