newb: What is the purpose of if __name__ == "__main__":

Ben Finney bignose+hates-spam at benfinney.id.au
Wed Dec 6 22:15:33 EST 2006


"johnny" <rampeters at gmail.com> writes:

> What is the purpose of
> if __name__ == "__main__":

    <URL:http://www.python.org/infogami-faq/tutor/tutor-what-is-if-name-main-for/>

-- 
 \      "He that would make his own liberty secure must guard even his |
  `\                          enemy from oppression."  -- Thomas Paine |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list