python dictionary and default values
<p>Assuming <code>connectionDetails</code> is a Python dictionary, what's the best, most elegant, most "pythonic" way of refactoring code like this:</p>

<pre><code>if "host" in connectionDetails:
    host = connectionDetails["host"]
else:
    host = someDefaultValue
</code></pre>
