Python, pythonic expression
<p>Is there pythonic expression for this snippet?</p>

<pre><code># linux.cmd is a dict
cmd = linux.cmd.get(k, k)
if not cmd:
    cmd = k
</code></pre>

<p>The value of <code>linux.cmd.get[k]</code> could be <code>False</code>.</p>
