When does Python do automatic type conversion?
<p>When does Python do automatic type conversion?</p>

<p>--</p>

<p>Update:</p>

<p>I asked this after reading this post: <a href="http://groups.google.com/group/golang-nuts/browse_thread/thread/7a980dfc568a54f2#" rel="nofollow">In praise of Go or : "Why I moved from Python and C++ to Go"</a>. The one of the points the poster makes is that:</p>

<blockquote>
  <ul>
  <li>It is statically typed, so it is more explicit and the code of a third
  party is more readable. Also it
  eliminates the risk of unwanted
  automatic type conversions (unlike
  Python).</li>
  </ul>
</blockquote>

<p>I had no idea what he meant by "unwanted automatic type conversions". Now, I think he's talking about <a href="http://golang.org/doc/go_faq.html#conversions" rel="nofollow">implicit numeric conversions</a>. Of course, Python has these as <code>1.0 + 2</code> will convert <code>2</code> to <code>2.0</code> and return <code>3.0</code>.</p>
