title: numpy.getbuffer and numpy.frombuffer
body: <p>I am trying to wrap my head around the numpy implementation of PEP3118.  How exactly does buffer access work in numpy.</p>
  
  <pre><code>&gt;&gt;&gt; p = numpy.getbuffer(numpy.arange(10))
  &gt;&gt;&gt; p
  &lt;read-write buffer for 0x1003e5b10, size -1, offset 0 at 0x1016ab4b0&gt;
  &gt;&gt;&gt; numpy.frombuffer(p)
  array([  0.00000000e+000,   4.94065646e-324,   9.88131292e-324,
       1.48219694e-323,   1.97626258e-323,   2.47032823e-323,
       2.96439388e-323,   3.45845952e-323,   3.95252517e-323,
       4.44659081e-323])
  </code></pre>
  
  <p>So I am getting unexpected returns.  I would expect to see an array with 10 elements from 0-9.  I can get into the array and read/write though.</p>
  
  <pre><code>&gt;&gt;&gt; j = numpy.frombuffer(p)
  &gt;&gt;&gt; j
  array([  0.00000000e+000,   4.94065646e-324,   9.88131292e-324,
       1.48219694e-323,   1.97626258e-323,   2.47032823e-323,
       2.96439388e-323,   3.45845952e-323,   3.95252517e-323,
       4.44659081e-323])
  &gt;&gt;&gt; j += 1
  &gt;&gt;&gt; j
  array([ 1.,  1.,  1.,  1.,  1.,  1.,  1.,  1.,  1.,  1.])
  </code></pre>
  
  <p>So it looks like the buffer is initializing to all zeros, which I can then write to.  The functionality that I am expecting is to be able to build the array (with arange or asarray) directly to the buffer with getbuffer.  Is that not possible?</p>