title: How to test if a dictionary contains a specific key?
body: <p>What's the cleanest way to test if a dictionary contains a key?</p>
  
  <pre><code>x = {'a' : 1, 'b' : 2}
  if (x.contains_key('a')):
      ....
  </code></pre>