How do I rewrite $x = $hash{blah} || 'default' in Python?
<p>How do I pull an item out of a Python dictionary without triggering a KeyError? In Perl, I would do:</p>

<pre><code>$x = $hash{blah} || 'default'
</code></pre>

<p>What's the equivalent Python?</p>
