if __name__ == '__main__':

Simon Brunning simon at brunningonline.net
Thu Mar 20 12:21:55 EDT 2008


On Thu, Mar 20, 2008 at 4:12 PM, Bhagwat Kolde <bbkolde at gmail.com> wrote:
> Hi,
> I am new to the python and not getting meaning of following line,
>
> if __name__ == '__main__':
>       main()

<http://www.python.org/doc/faq/programming/#how-do-i-find-the-current-module-name>

-- 
Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues



More information about the Python-list mailing list