[Python-Dev] PEP 328 and PEP 338, redux

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 28 02:23:03 CEST 2006


Guido van Rossum wrote:

> Bad idea IMO. The __name__ == "__main__" rule is so ingrained, you
> don't want to mess with it.

It would only make a difference for main modules inside
packages. Wouldn't that be fairly rare? The vast majority
of existing __name__ == "__main__" uses ought to be
unaffected.

--
Greg


More information about the Python-Dev mailing list