On Feb 3, 10:53 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sat, 03 Feb 2007 05:51:56 -0300, "Gabriel Genellina" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > menction that at all. And no one should expect that a beginner would have > > to read section 26.3 on the Language Reference (__main__ -- Top-level > > script environment) just to know what's that stuff about __name__ and > > "__main__"... > > OTOH: a true beginner, working out of the tutorial, is unlikely to > be writing anything that really needs to know about this feature. For > the most part, all this feature does is allow one to write safely > importable modules (ie; modules that only define constants, classes, and > functions when imported) that can also be used as stand-alone programs > (often done to add test capability).
Maybe, but viewing their profile of past posts on Google I got the feeling that fatwallet could be trying to understand existing code soehow. - Pad. -- http://mail.python.org/mailman/listinfo/python-list