PEP0238 lament

David Boddie david at boddie.net
Mon Jul 30 13:14:50 EDT 2001


"Terry Reedy" <tjreedy at home.com> wrote in message news:<AY097.50244$EP6.11071787 at news1.rdc2.pa.home.com>...
> "David Boddie" <david at boddie.net> wrote in message
> news:18289ee4.0107291329.6d082ccf at posting.google.com...
> 
> > > And would the same benefit arise by having the default name
> > > of the executable be "python3", but not forcing it to be so?
> >
> > I would imagine that renaming your new "python3" interpreter to
> > "python" would wipe out any advantage that the above plan gives you.
> 
> The only way to force a name for the executable is to check argv[0]
> and die if it does not end 'python3' (after being lowercased).  I
> personally would find that kind of obnoxious.

I was thinking more of the line which specifies the executable when
scripting on flavours of Unix.



More information about the Python-list mailing list