Are statements in the form bool = (boolean expression) Pythonic?
<p>Take the following code</p>

<pre><code>is_valid = command == "B"
</code></pre>

<p>or</p>

<pre><code>can_move = move in legal_moves()
</code></pre>

<p>These are in the form</p>

<pre><code>bool = (boolean expression)
</code></pre>

<p>I found myself writing statements like these and I'm wondering if it's considered "unpythonic" in some way. I'm not sure I like it very much, but it is concise.</p>

<p>So anyone have cleaner alternatives?</p>
