[Python-3000] PEP to change how the main module is delineated

Brett Cannon brett at python.org
Mon Apr 23 22:01:55 CEST 2007

On 4/23/07, Christian Heimes <lists at cheimes.de> wrote:
> Brett Cannon wrote:
> >> Someone on python-idea brought up the idea to add the sys module to
> >> builtins. The feature would remove the requirement for an extra line and
> >> the costs should be minimal or even zero since sys is a special builtin
> >> module.
> >>
> >
> > That's a separate PEP.
> Do you remember the PEP number? I can't find the PEP.


> >> Some people including me like to resurrect the PEP 299 __main__()
> >> function idea. http://www.python.org/dev/peps/pep-0299/
> >
> > As I have already said multiple times on python-ideas, I don't
> > personally like that idea.  If someone wants to do the work to try to
> > push that view then they can.
> I know. I mentioned it because I "wanted to push that view". O:-)

That's fine, but this view in no way addresses the problem I am
tackling; how to allow a module to be executed that has a relative
import.  With the change you want you don't even address the issue I
am trying to tackle.


More information about the Python-3000 mailing list