title: Swig, python and output strings
body: <p>I am using Swig to wrap a C interface that looks like this:</p>
  
  <pre><code>int dosomething(char **str);
  </code></pre>
  
  <p>where str is an output string.  For example, from C its called like this:</p>
  
  <pre><code>char *str= NULL;
  int val= dosomething(&amp;str);
     ...
  free(str);
  </code></pre>
  
  <p>In Python, I'd like to be able to call it like this:</p>
  
  <pre><code>val,str = dosomething()
  </code></pre>
  
  <p>However, python keeps reporting</p>
  
  <pre><code>TypeError: dosomething() takes exactly 1 arguments (0 given)
  </code></pre>
  
  <p>I've tried using OUTPUT in a typemap, but to no avail.  Any ideas?</p>