title: Python Ctypes: Convert returned C array to python list, WITHOUT numpy
body: <p>I am using Python Ctypes to access some C library.</p>
  
  <p>One of the functions I connected to, returns <code>const *double</code>, which is actually an array of doubles.</p>
  
  <p>When I get the result in Python, how can I convert this array to a python list?</p>
  
  <p>The signature of the C function:</p>
  
  <pre><code>const double *getWeights();
  </code></pre>
  
  <p>Let's assume that it returns an array that contains 0.13 and 0.12.
  I want to get a python List: <code>[0.13, 0.12]</code></p>