Ok with generators then...<p>I&#x27;m sure some people will look at this and think that it&#x27;s summing all of the numbers over 10 in xs:<p><pre><code>    sum(x &gt; 10 for x in xs)
</code></pre>
Whereas with this, which is explicit, it&#x27;s substantially less likely they&#x27;ll think that:<p><pre><code>    sum(1 for x in xs if x &gt; 10)
</code></pre>
Again, I don&#x27;t see the point of maintaining the weakened type system for a few minor &#x27;clever&#x27; barely-short cuts like this. Look at what that kind of thinking did to perl.<p>If python started throwing exceptions on all the code that treated True and False as integers, I&#x27;m pretty sure all the fixes done to accommodate that would probably make the code cleaner and easier to understand.