title: SWIG Python - wrapping a function that expects a double pointer to a struct
body: <p>I'm wrapping a C library that contains a struct:</p>
  
  <pre><code>struct SCIP
  {
  //...
  }
  </code></pre>
  
  <p>and a function that creates such a struct:</p>
  
  <pre><code>void SCIPcreate(SCIP** s)
  </code></pre>
  
  <p>SWIG generates a python class <code>SCIP</code> and a function <code>SCIPcreate(*args)</code> from that.</p>
  
  <p>When I now try calling <code>SCIPcreate()</code> in python, it obviously expects a parameter of type <code>SCIP**</code>, how am I supposed to create such a thing?</p>
  
  <p>Or should I try and extend the <code>SCIP</code> class with a constructor that calls <code>SCIPcreate()</code> automatically? If so, how would I go about that?</p>