title: What is the C-API interface to create built-in array object in Python?
body: <p>I am working on a Python C-extension code. Currently, a 1D C-array is converted to a Python List. Now I need to convert an ND-array, described by a 1) data type, 2) shape (as a 1D integer vector, for example, 2x4x3 array), and 3) data binary payload as serialized array elements of data-type.</p>
  
  <p>I noticed that there is an <code>array</code> object in python: <a href="https://docs.python.org/2/library/array.html" rel="nofollow noreferrer">https://docs.python.org/2/library/array.html</a></p>
  
  <p>I prefer to convert the ND array buffer to an <code>array</code> object instead of requiring installation of <code>numpy</code> ndarray - an additional dependency, but I failed to find any C-API to create/read/write Python-<code>array</code> objects from C.</p>
  
  <p>does this interface (something similar to <code>PyList_New</code>) exist?</p>