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 of the module, > > otherwise it is __name__. > > I don't mean to nitpick, but I see Steve had a small but crucial slip > here. I think he means, " If you've imported the module from elsewhere, > the __name__ is set to the name of the module, otherwise it is "__main__".
Yes absolutely - well spotted, and sorry for the typo. S. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor