[Python-Dev] shebang policy, and pip
wes.turner at gmail.com
Wed Oct 8 21:36:07 CEST 2014
On Oct 8, 2014 7:20 AM, "Donald Stufft" <donald at stufft.io> wrote:
> > On Oct 8, 2014, at 6:16 AM, Christian Tismer <tismer at stackless.com>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA512
> > Howdy,
> > this question is a bit about general policy which is not yet
> > covered in the python recommendations:
> > I see projects which do check-ins like "get rid of shebang lines"
> > and they remove those lines from non-script sources.
> > It is not always clear to me what to do, so I tend to leave those
> > lines in per default, in order not to waste time thinking about it,
> > but well, today I was confronted with that.
> > Digging a bit deeper shows the following:
> > python docs:
> > No mention of shebang, but for Windows.
> > https://docs.python.org/3/using/windows.html?highlight=shebang
> > Google's python style guide also says when a shebang is needed, but
> > does not forbid it.
> > Pep 394 explains how to use shebang, but still nothing about not using
> > http://legacy.python.org/dev/peps/pep-0394/
> > So is there anything officially preferred, and should that go into pep
> Some editors can use shebang lines to control syntax highlighting or
> (mine for example will lint different for python2 vs python3 shebangs).
Does it support shebang lines like:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev