title: Make memoryview of bytearray return int elements in Python 2.7
body: <pre><code>b = bytearray(1)
  m = memoryview(b)
  </code></pre>
  
  <p>Since the type(b[0]) is int, I would expect type(m[0]) to be int also.  Starting in Python 3.2 this is true.  But in Python 2.7, the type is str.  I need to be able to pass a memoryview to functions which expect an array of int.</p>
  
  <p>In Python 2.7, I could create a wrapper class and override <code>__getitem__</code> . But is there a trick to tell a memoryview object to return int elements?</p>