title: Python built-in types subclassing
body: <p>What's wrong with this code?</p>
  
  <pre><code>class MyList(list):
    def __init__(self, li): self = li
  </code></pre>
  
  <p>When I create an instance of <code>MyList</code> with, for example, <code>MyList([1, 2, 3])</code>, and then I print this instance, all I get is an empty list <code>[]</code>. If <code>MyDict</code> is subclassing <code>list</code>, isn't <code>MyDict</code> a <code>list</code> itself?</p>
  
  <p>NB: both in Python 2.x and 3.x.</p>