Re: [Tutor] How does it function

2006-03-30 Thread Steve Nelson
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

Re: [Tutor] How does it function

2006-03-29 Thread Terry Carroll
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

Re: [Tutor] How does it function

2006-03-29 Thread Steve Nelson
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

[Tutor] How does it function

2006-03-29 Thread Kaushal Shriyan
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