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 false.</p>
