if __name__ == "__main__"

Chris Rennert crennert at pbmplus.com
Mon Dec 17 14:49:19 EST 2001


Hello,

Could someone please fill me in on how the if __name__ == "__main__
thing works.  I am reading through some tutorials and I never really
get a clear definitive answer on that.
Is this like main() in C?  
Any help would be greatly appreciated.



More information about the Python-list mailing list