all() returns different values for the same expression
<p>I'm facing a very weird problem in my python script when I use the function <code>all()</code>.</p>

<p>The console gives me <code>false</code> (which is obviously correct) for this line:</p>

<pre><code>all(x == 2 for x in (8,2,2,2))
</code></pre>

<p>and in my script the same line returns <code>true</code>?!</p>

<p>What is going on here? Are there other <code>all()</code> function which could have overwritten it in my script? I'm importing the following modules:</p>

<pre><code>import os
import sys
import string
import time
from time import gmtime, strftime
from optparse import OptionParser, OptionGroup
import cx_Oracle
from pylab import *
import ROOT
from array import array
import logging
from traceback import format_exc
</code></pre>
