Python check condition in all on empty list
<p>is it normal behavior ?</p>

<pre><code>answer=all(c=='false True answer?' for c in [])
# answer = True
</code></pre>

<p>will it be ok if i want False on check values by "all" at empty list to use such line ?: </p>

<pre><code>answer=all(set([c=='a' for c in []]) or [False,])
</code></pre>

<p>looks ok if:</p>

<pre><code>answer=all(set([c=='a' for c in ['a','a']]) or [False,])
answer=all(set([c=='a' for c in ['a','b']]) or [False,])
</code></pre>

<p>i decide to use reverse logic such as:</p>

<pre><code>bad_answer=bool([c for c in ['a','b'] if c!='a'])
</code></pre>
