title: Difference between bytearray and list
body: <p>What is the difference between <code>bytearray</code> and for example, a <code>list</code> or <code>tuple</code>?</p>
  
  <p>As the name suggests, <code>bytearray</code> must be an <code>array</code> that carries <code>byte</code> objects. <br/>
  In python, it seems that <code>bytes</code> and <code>str</code> are treated equally</p>
  
  <pre><code>&gt;&gt;&gt; bytes
  &lt;type 'str'&gt;
  </code></pre>
  
  <p>So, what is the difference? <br/>
  Also, if you print a <code>bytearray</code>, the result is pretty weird</p>
  
  <pre><code>&gt;&gt;&gt; v = bytearray([200, 201])
  &gt;&gt;&gt; print v
  ÈÉ
  </code></pre>
  
  <p>It seems that it transforms the integer in <code>chr(integer)</code> , is that right? What is the use of a <code>bytearray</code> then?</p>