git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Standardize python shebangs

From
Johan Herland <johan@herland.net>
Date
May 8, 2014, 12:20 UTC
Message-ID
<CALKQrgevDwtjF9Thi9xV6M=Os4mZMwf9JhYecJB4c0-SOJq33A@mail.gmail.com>
In-Reply-To
<vpqlhucmqxt.fsf@anie.imag.fr>

On Thu, May 8, 2014 at 1:48 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

> It is very important that git-multimail keeps running with Python2
> (ideally, it could be portable Python 2 or 3, but it's not so easy to
> do), but that would be strange to force even non-git-multimail-users to
> use Python2 for that.
FWIW, the rules laid out in PEP394 should be very easy to follow:
 - If your script is Python2-only, use "#!/usr/bin/env python2"
 - If your script is Python3-only, use "#!/usr/bin/env python3"
 - If your script is Python2/3-agnostic, use "#!/usr/bin/env python"
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Matthieu Moy
Message 13 of 13 in “Standardize python shebangs”
  1. Standardize python shebangsFelipe Contreras, May 7, 2014
  2. Johan HerlandMay 7, 2014
  3. Felipe ContrerasMay 7, 2014
  4. James DenholmMay 7, 2014
  5. Johan HerlandMay 7, 2014
  6. Matthieu MoyMay 7, 2014
  7. Felipe ContrerasMay 7, 2014
  8. Matthieu MoyMay 7, 2014
  9. Felipe ContrerasMay 7, 2014
  10. Matthieu MoyMay 7, 2014
  11. James DenholmMay 7, 2014
  12. Matthieu MoyMay 8, 2014
  13. Johan HerlandMay 8, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.