Pythonic way to check if: all elements evaluate to False -OR- all elements evaluate to True
<p>I want the results of the function to be:</p>

<ul>
<li>All values evaluate to False (None, 0, empty string) -> True</li>
<li>All values evaluate to True -> True</li>
<li>Every other case -> False</li>
</ul>

<p>This is my try at it:</p>

<pre><code>&gt;&gt;&gt; def consistent(x):
...  x_filtered = filter(None, x)
...  return len(x_filtered) in (0, len(x))
...
&gt;&gt;&gt; consistent((0,1))
False
&gt;&gt;&gt; consistent((1,1))
True
&gt;&gt;&gt; consistent((0,0))
True
</code></pre>

<p>[Bonus]</p>

<p>What should this function be named?</p>
