[Python-porting] Shebang lines for Python 3

Lennart Regebro regebro at gmail.com
Mon Sep 5 12:10:43 CEST 2011


On Mon, Sep 5, 2011 at 11:42, Vladimir Perić <vlada.peric at gmail.com> wrote:

> On Mon, Sep 5, 2011 at 9:54 AM, Eike Hein <hein at kde.org> wrote:
> > On 9/4/2011 9:07 PM, Aaron Meurer wrote:
> >>
> >> This shortcut works on my machine, but I don't know if it's universal
> >> to all Python 3 installs.  This certainly would make it easier to me
> >> developing with those scripts, because I can just call ./script.py,
> >> but I'm wondering if it's proper to use that in the final (Python 3
> >> version of the) release of the package.
> >
> > I remember reading somewhere that it's currently the
> > recommendation of Python upstream to leave "python"
> > at Python 2.x - possibly even indefinitely - and use
> > "python3" for Python 3. Arch went against the grain
> > there, it seems.
>
> If that's the case, would it make sense to have 2to3 automatically
> convert these shebang lines? As a separate (perhaps not enabled by
> default) fixer maybe?


That's not possible as you don't know what they should be. And in any case,
the installer should adjust them (as distutils does, for example).

//Lennart

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20110905/ed8b2d41/attachment.html>


More information about the Python-porting mailing list