SWIG, Python and opaque structs

One of my open source projects is python-gphoto2, a Python interface to the popular libgphoto2 digital camera software library. It uses SWIG (Simplified Wrapper and Interface Generator) to generate the Python bindings from the library’s “header files”, saving me the trouble of hand crafting a Python interface to every C function in the library. SWIG … Read more