What's the point of a main function and/or __name__ == "__main__" check in Python?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/419163/what-does-if-namemain-do">What does &lt;if __name__==&rdquo;__main__&rdquo;:&gt; do?</a>  </p>
</blockquote>

<p>I occasionally notice something like the following in Python scripts:</p>

<pre><code>if __name__ == "__main__":
    # do stuff like call main()
</code></pre>

<p>What's the point of this?</p>
