title: When does Python perform type conversion when comparing int and float?
body: <p>Why does Python return <code>True</code> when I compare <code>int</code> and <code>float</code> objects which have the same value?</p>
  
  <p>For example:</p>
  
  <pre><code>&gt;&gt;&gt; 5*2 == 5.0*2.0
  True
  </code></pre>