When generating a Python wrapper using SWIG, many C wrapper functions are generated by it. One of them is the following (I have stripped it to the bare minimum):