On 3/30/06, Terry Carroll <[EMAIL PROTECTED]> wrote:
> On Wed, 29 Mar 2006, Steve Nelson wrote:
>
> > Simple answer - any python program you write is effectively a
> > 'module'. Modules have an attribute __name__. If you've imported the
> > module from elsewhere, the __name__ is set to the name
On Wed, 29 Mar 2006, Steve Nelson wrote:
> On 3/29/06, Kaushal Shriyan <[EMAIL PROTECTED]> wrote:
> >
> > Just wanted to know the detailed explanation about the below statement
> >
> > if __name__ == "__main__":
>
> Simple answer - any python program you write is effectively a
> 'module'. Modules
On 3/29/06, Kaushal Shriyan <[EMAIL PROTECTED]> wrote:
> Hi ALL
>
> Just wanted to know the detailed explanation about the below statement
>
> if __name__ == "__main__":
Simple answer - any python program you write is effectively a
'module'. Modules have an attribute __name__. If you've imported
Hi ALL
Just wanted to know the detailed explanation about the below statement
if __name__ == "__main__":
Thanks
Regards
Kaushal
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor