title: SWIG C-to-Python Int Array
body: <p>I am trying to access a C function with the following prototype from python using swig:</p>
  
  <pre><code>int cosetCoding(int writtenDataIn, int newData, const int memoryCells, int *cellFailure, int failedCell);
  </code></pre>
  
  <p>Swig creates the .so with no problems and I can import it into python, but when I try to access it with the following:</p>
  
  <pre><code> cosetCoding.cosetCoding(10,11,8,[0,0,0,0,0,0,0,0],0)
  </code></pre>
  
  <p>I get the following traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: in method 'cosetCoding', argument 4 of type 'int *'
  </code></pre>
  
  <p>The pointer is supposed to be an int array with size defined by memoryCells</p>