Making Python raise an error/warning when the wrong data type is clearly used
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7969552/why-does-4-3-return-true-in-python-2">Why does 4 &lt; &#39;3&#39; return True in Python 2?</a>  </p>
</blockquote>



<p>Can't understand why the following works in Python (2.6 and 2.7):</p>

<pre><code>&gt;&gt;&gt; "2" &gt; 5
True
</code></pre>

<p>This could have been a difficult bug to catch.  It seems to me that it would be better for this to raise an error or warning.  Is there a way to make Python do that?</p>
