if __name__ == 'main':

gtb goodTweetieBird at hotmail.com
Tue Mar 20 17:49:43 CET 2007


Hi,

I often see the following 'if' construct in python code. What does
this idiom accomplish? What happens if this is not main? How did I get
here if it is not main?

Thanks,

gtb

==============================================

if __name__ == 'main':
   myQuest('myQuest').Run()




More information about the Python-list mailing list