Code help for understand

viral shah shahviral.it at gmail.com
Wed May 2 08:30:25 EDT 2012


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 the all this thing suggest?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120502/5bb9c47b/attachment.html>


More information about the Python-list mailing list