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 <shahviral...@gmail.com> wrote:

> 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?
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


-- 
*Mob UG: +256 (0) 70 1735800 | NL +31 (0) 6 852 841 38 | Gtalk: jmwebaze |
skype: mwebazej | URL: www.astro.rug.nl/~jmwebaze

/* Life runs on code */*
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to