title: How can I call __missing__ from dict
body: <p>I would like to derive from dict and overwrite the method missing. I would like to do some stuff and then still call its super function. Something like this:</p>
  
  <pre><code>class Foo(dict):
      def __missing__(self, key):
          print('missing {}'.format(key))
          return super().__missing__(key)
  </code></pre>
  
  <p>Which however produces: </p>
  
  <pre><code>AttributeError: 'super' object has no attribute '__missing__'
  </code></pre>
  
  <p>Of course I could still make a working program using:</p>
  
  <pre><code>raise KeyError(key)
  </code></pre>
  
  <p>But I would much rather call the super function. Because code could (or maybe at a future version of python will be) executed in <code>super().__missing__</code> other than raising the KeyError.</p>