about if __name == '__main__':

Amit Jaluf amitjaluf at gmail.com
Sun Aug 28 11:34:27 EDT 2011


hello group

i have one question about this

if __name == '__main__':

is it same as other languages like[c,c++]  main function. because of i
google and read faqs
and also " http://docs.python.org/faq/programming#how-do-i-find-the-current-module-name"
this and i am confused.

thanks




More information about the Python-list mailing list