Re: [Python-Dev] PEP 328 and PEP 338, redux
28 Jun
2006
28 Jun
'06
12:12 a.m.
At 08:08 AM 6/27/2006 -0700, Guido van Rossum wrote:
Bad idea IMO. The __name__ == "__main__" rule is so ingrained, you don't want to mess with it.
Actually, maybe we *do* want to, for this usage. Note that until Python 2.5, it was not possible to do "python -m nested.module", so this change merely prevents *existing* modules from being run this way -- when they could not have been before! So, such modules would require a minor change to run under -m. Is this actually a problem, or is it a new feature?
6502
Age (days ago)
6506
Last active (days ago)
12 comments
8 participants
participants (8)
-
Aahz
-
Andrew Dalke
-
Georg Brandl
-
Giovanni Bajo
-
Greg Ewing
-
Guido van Rossum
-
Nick Coghlan
-
Phillip J. Eby