title: When should a memoryview be used?
body: <p>The full description of memoryview can be found <a href="http://docs.python.org/dev/library/stdtypes.html#memoryview" rel="noreferrer">here</a>:</p>
  <blockquote>
  <p>Create a <code>memoryview</code> that references <em>obj</em>. <em>obj</em> must support the buffer protocol. Built-in objects that support the buffer protocol include <code>bytes</code> and <code>bytearray</code>.</p>
  <p>A <code>memoryview</code> has the notion of an <em>element</em>, which is the atomic memory unit handled by the originating object <em>obj</em>. For many simple types such as <code>bytes</code> and <code>bytearray</code>, an element is a single byte, but other types such as <code>array.array</code> may have bigger elements.</p>
  </blockquote>