Return True if item is empty string
<p>Please consider this snippet:</p>

<pre><code>&gt;&gt;&gt; i = ["", 1, 2]
&gt;&gt;&gt; all([x for x in i])
False
</code></pre>

<p>What would be Pythonic way to make this snippet return <code>True</code> even if item in iterable is empty string?</p>

<p>Standard restrictions should apply - if item is <code>None</code> or <code>False</code> etc, it should return False as expected.</p>

<pre><code>all([x for x in i if not isinstance(x, str)])
</code></pre>

<p>The only falsy string is the empty string, so if you don't want to test for it, then filter out the strings.</p>

python