Python: Why does comparing an int with a string not throw an error?
<p>In Python 3 the attempt to order a string and an int (e.g. <code>1 &gt; "1"</code>) throws a TypeError.
Why does comparing a string with an int for equality not throw an error? (e.g. <code>1=="1"</code>)
What is an example where where comparing a string with an int makes sense?
Why do JavaScript and SQL take a different approach?</p>

<p>Related:
<a href="http://stackoverflow.com/questions/3270680/how-does-python-compare-string-and-int">How does Python compare string and int?</a> </p>
