Re: Code help for understand

2012-05-02 Thread J. Mwebaze
if you are referring to the line * * *if __name__ == '__main__':* * * Find a good explanation here * * http://stackoverflow.com/questions/419163/what-does-if-name-main-do On Wed, May 2, 2012 at 2:30 PM, viral shah wrote: > Hi > > in every .py file I found this same code line on the below side

Code help for understand

2012-05-02 Thread viral shah
Hi in every .py file I found this same code line on the below side *def main(): application = webapp.WSGIApplication([('/', MainHandler)], debug=True) run_wsgi_app(application) if __name__ == '__main__': main() * can anyone explain me what's