Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<Skyhook> Where is 'bavaria' proper? I thought it was austria. -- Seen on #Linux


devel / comp.lang.python / Re: "py" command for Linux and Mac?

SubjectAuthor
* Re: "py" command for Linux and Mac?Mats Wichmann
`* Re: "py" command for Linux and Mac?De ongekruisigde
 +- Re: "py" command for Linux and Mac?Michael Torrie
 `- Re: "py" command for Linux and Mac?Chris Angelico

1
Re: "py" command for Linux and Mac?

<mailman.387.1652378167.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18245&group=comp.lang.python#18245

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: "py" command for Linux and Mac?
Date: Thu, 12 May 2022 11:52:33 -0600
Lines: 19
Message-ID: <mailman.387.1652378167.20749.python-list@python.org>
References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de +2yyd+NzKsmo9p5Tpscf1A0LCVvt9LjtGdHMqZFmQ/EA==
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=yXT8RMc3;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'windows,': 0.05;
'(python': 0.09; '2.7': 0.09; 'dan': 0.09; 'linux': 0.09; 'steps':
0.11; 'received:173': 0.13; 'does,': 0.16; 'porting': 0.16;
'python3.': 0.16; 'subject:: "': 0.16; 'subject:Mac': 0.16;
'wrote:': 0.16; 'python': 0.16; 'probably': 0.17; 'to:addr:python-
list': 0.20; 'code': 0.23; 'command': 0.23; '(and': 0.25; 'header
:User-Agent:1': 0.30; 'but': 0.32; "i'm": 0.33; 'subject:for':
0.33; 'particular': 0.33; 'header:In-Reply-To:1': 0.34;
'received:192.168': 0.37; 'use': 0.39; "there's": 0.61; 'finally':
0.62; 'ever': 0.63; 'heard': 0.67; 'skip:# 10': 0.68; 'respects':
0.84; 'url:windows': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=xA/e1hDjKTCf
zQZn7/NlzfA2HNzblXSBFsfS2QZmc1g=; b=yXT8RMc3/hpOjAiPAwqQGvC+s9Dj
O4mirAAMB8oAZoU4f92a9KUGg4PiYNu5LsSwEZaevGUpTL2iWWx6KrsvZotjq9Lo
Zk6BAJyJVmxtapgqPxC3yN7vo/4rh4rVhU+UNfyAQNE0w4/GzXJGVBg1nymU3JIg
EuxAmLO0RBg03+s=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=xA/e1hDjKTCfzQZn7/NlzfA2HNzblXSBFsfS2QZmc1g=;
b=ah5mcSxuBP9rJjQEcjoMBo/AVsbe43lEWyWyDJ26+2+JATkLVoWi0KoNxM2a1nG/Rn6wkhsdDxfS0ErRqjRLMLsG1KPstFTCgD1IdfEQOedoaNTQYUfFiuQM6yjn31FaFGHbwqLV3BoQ8BSgQs+mDhoSqsfS7QkiMSQkUkWF7to=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
In-Reply-To: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
X-Pobox-Relay-ID: 4E85FEA0-D21C-11EC-B0F8-C85A9F429DF0-81526775!pb-smtp20.pobox.com
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
X-Mailman-Original-References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
 by: Mats Wichmann - Thu, 12 May 2022 17:52 UTC

On 5/12/22 10:25, Dan Stromberg wrote:
> Hi folks.
>
> I heard there's a Windows-like "py" command for Linux (and Mac?).
>
> I'm finally getting to porting a particular project's Python 2.7 code to
> 3.x, and one of the first steps will probably be changing a lot of "python2
> script.py" to use #!/usr/bin/env python2 and chmod +x. Then we can update
> the scripts one at a time to use #!/usr/bin/env python3.
>
> However, would this be Linux-and-Mac-only? I'm not at all sure this code
> will ever move to Windows, but in case it does, would a "py" command work
> on all 3 if I use #!/usr/bin/env py?

The py command (python lanucher) respects shebang lines.

https://docs.python.org/3/using/windows.html#python-launcher-for-windows

Re: "py" command for Linux and Mac?

<t5jhun$6sd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18246&group=comp.lang.python#18246

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ongekrui...@news.eternal-september.org (De ongekruisigde)
Newsgroups: comp.lang.python
Subject: Re: "py" command for Linux and Mac?
Date: Thu, 12 May 2022 17:59:51 -0000 (UTC)
Organization: Ongekruisigden
Lines: 29
Message-ID: <t5jhun$6sd$1@dont-email.me>
References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
<mailman.387.1652378167.20749.python-list@python.org>
Reply-To: ongekruisigde@holymenandwomen.catholic
Injection-Date: Thu, 12 May 2022 17:59:51 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="15b9ff619443a730b4dec856c8207ecc";
logging-data="7053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XFGHnMOWSNq3kzqi3vNqz1tKYrnIaGQdUmdrgPDONHw=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:shIso6Bv5x+x58yzqOc8hAywos0=
 by: De ongekruisigde - Thu, 12 May 2022 17:59 UTC

On 2022-05-12, Mats Wichmann <mats@wichmann.us> wrote:
> On 5/12/22 10:25, Dan Stromberg wrote:
>> Hi folks.
>>
>> I heard there's a Windows-like "py" command for Linux (and Mac?).
>>
>> I'm finally getting to porting a particular project's Python 2.7 code to
>> 3.x, and one of the first steps will probably be changing a lot of "python2
>> script.py" to use #!/usr/bin/env python2 and chmod +x. Then we can update
>> the scripts one at a time to use #!/usr/bin/env python3.
>>
>> However, would this be Linux-and-Mac-only? I'm not at all sure this code
>> will ever move to Windows, but in case it does, would a "py" command work
>> on all 3 if I use #!/usr/bin/env py?
>
> The py command (python lanucher) respects shebang lines.

Linux by itself respects shebang lines, so you don't need a separate
launcher program. Just put e.g.:

#! /usr/bin/env python

at the top of your Python file.

--
In the beginning there was darkness and the darkness was without form
and void. And in addition to the darkness there was also me. And I moved
upon the face of the darkness and I saw that I was alone. ... ... ...
Let there be light. [Bomb 20; John Carpenter's Dark Star - 1974]

Re: "py" command for Linux and Mac?

<mailman.456.1653096082.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18342&group=comp.lang.python#18342

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: torr...@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: "py" command for Linux and Mac?
Date: Fri, 20 May 2022 19:21:13 -0600
Lines: 35
Message-ID: <mailman.456.1653096082.20749.python-list@python.org>
References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
<mailman.387.1652378167.20749.python-list@python.org>
<t5jhun$6sd$1@dont-email.me>
<ef81e10a-e92d-2ad8-aae8-4a935af22a9e@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de XR/z2jYwaU9tftD0DDpGOAP4PLMun/I0Vi6TSCgFfLZw==
Return-Path: <torriem@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=PHvjBinR;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'knows': 0.04; 'windows,':
0.05; '(python': 0.09; '2.7': 0.09; 'dan': 0.09; 'linux': 0.09;
'steps': 0.11; 'that.': 0.15; 'does,': 0.16; 'interpreter': 0.16;
'mats': 0.16; 'porting': 0.16; 'python3.': 0.16; 'subject:: "':
0.16; 'subject:Mac': 0.16; 'wichmann': 0.16; 'windows.': 0.16;
'wrote:': 0.16; 'python': 0.16; 'instead': 0.17; 'probably': 0.17;
'message-id:@gmail.com': 0.18; 'to:addr:python-list': 0.20;
'code': 0.23; 'command': 0.23; 'run': 0.23; '(and': 0.25;
'function': 0.27; '>>>': 0.28; 'received:209.85.210': 0.29;
'header:User-Agent:1': 0.30; 'question': 0.32; 'launched': 0.32;
'but': 0.32; "i'm": 0.33; 'subject:for': 0.33; 'there': 0.33;
'particular': 0.33; 'script': 0.33; 'windows': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'files': 0.36; 'received:209.85':
0.37; 'received:192.168': 0.37; 'though': 0.37; 'put': 0.38;
'read': 0.38; 'received:209': 0.39; 'use': 0.39; 'program.': 0.40;
'should': 0.40; 'skip:o 10': 0.61; "there's": 0.61; 'finally':
0.62; 'ever': 0.63; 'thus': 0.64; 'his': 0.65; 'heard': 0.67;
'skip:# 10': 0.68; 'skip:/ 10': 0.69; 'lines,': 0.84; 'respects':
0.84; 'was.': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=CsHI7JDVZN4Nhsx5BwBlp16zkN8cheetWKMVYRUZeNw=;
b=PHvjBinRwWR7ZnjzYnOSznpiN3ZdXVtlyw4tLjjs6TJYONAFjT23nX9Xt3dspS/awf
Wnf03Z0jTWz3clkcsn5sb6AeI1OCT+2qVAF0RVr9pL36yGrFFo8SqtNILhsWC9nras94
8uQiAfm7kO4ZypVOS7V94gFFiYALb/IJak0z7/MSyiiKelWT8fK0LqS6derRFCvriB0l
/VSjscxFxYc+DCUq+ZWbadXgVEVgXtlJGHFRAfq7VimPofUEmfz6mFkVYOn/WPTEOMb0
bzD+X89WnSZuLa1wvERi2ZllncjAhrKGVZbNc5izMEeSkBo1vlFeSoEHsrt3i7vW+U0o
r+wg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=CsHI7JDVZN4Nhsx5BwBlp16zkN8cheetWKMVYRUZeNw=;
b=2lAd//bjlR5gHGBlpTdPuVmM1tLk9qD5H0SdGYzUxJtwGqfzQJAkAx+AyVIcYDWaJA
fRNP/c0JtnhS9/O9ADcMUbNTfn9Qcqixk+3EtD9hPzPGRmAjAYARHsMTTE81nGJoppWA
Rr7h3uJ/i9vrGk2C++a9OX5i5SIQAblFQyJvbqsFCmgITrYsaITOiGRj0eJjK8D3lWA0
RBHSnvN3R885twd7yRN7VkLurksF4SUwKux5spJuuH/WRBkudQiIN6VDXeKwaKzvCl2r
8BNtGc/cQlYrYTFlT5AkgcfJ9nvyLegRhm8RHggsLdlqig3KB+c9QdIELnwqE3nE+ewM
w5Pw==
X-Gm-Message-State: AOAM532Mc+E7+QoiV22EAflccjOWPc8HK8jLyeycTpLrCoH7Vem/F9Cf
ZraXBMlADSqris7RYkQHLbHux7cGvE7C7Q==
X-Google-Smtp-Source: ABdhPJznAkB++Ye6w7Cwg1Sra+Bo+LLRIOwqJcfTFWMPP1VjmvnGizj+kPbscFSJhSVZAUqa7Rzq/g==
X-Received: by 2002:a05:6a00:179f:b0:518:704c:4e20 with SMTP id
s31-20020a056a00179f00b00518704c4e20mr5475590pfg.79.1653096078840;
Fri, 20 May 2022 18:21:18 -0700 (PDT)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-US
In-Reply-To: <t5jhun$6sd$1@dont-email.me>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ef81e10a-e92d-2ad8-aae8-4a935af22a9e@gmail.com>
X-Mailman-Original-References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
<mailman.387.1652378167.20749.python-list@python.org>
<t5jhun$6sd$1@dont-email.me>
 by: Michael Torrie - Sat, 21 May 2022 01:21 UTC

On 5/12/22 11:59, De ongekruisigde wrote:
> On 2022-05-12, Mats Wichmann <mats@wichmann.us> wrote:
>> On 5/12/22 10:25, Dan Stromberg wrote:
>>> Hi folks.
>>>
>>> I heard there's a Windows-like "py" command for Linux (and Mac?).
>>>
>>> I'm finally getting to porting a particular project's Python 2.7 code to
>>> 3.x, and one of the first steps will probably be changing a lot of "python2
>>> script.py" to use #!/usr/bin/env python2 and chmod +x. Then we can update
>>> the scripts one at a time to use #!/usr/bin/env python3.
>>>
>>> However, would this be Linux-and-Mac-only? I'm not at all sure this code
>>> will ever move to Windows, but in case it does, would a "py" command work
>>> on all 3 if I use #!/usr/bin/env py?
>>
>> The py command (python lanucher) respects shebang lines.
>
> Linux by itself respects shebang lines, so you don't need a separate
> launcher program. Just put e.g.:

Dan knows this already. His question is about whether the shebang should
instead refer to a py launcher so that this script will run on Windows
or Linux.

And of course the answer given by the grandparent is that Dan should use
a normal linux shebang line in his scripts and on Windows the py
launcher will read that shebang and guestimate the proper python
interpreter to use and execute the script with that. Thus if I'm reading
this correctly, a Linux shebang line should function as expected on
Windows when python files are associated and launched with the py.exe
launcher, even though there's no such thing as /usr/bin/python3 on
Windows. Py launcher makes it work as if there was.

Re: "py" command for Linux and Mac?

<mailman.457.1653097819.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18343&group=comp.lang.python#18343

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: "py" command for Linux and Mac?
Date: Sat, 21 May 2022 11:50:06 +1000
Lines: 17
Message-ID: <mailman.457.1653097819.20749.python-list@python.org>
References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
<mailman.387.1652378167.20749.python-list@python.org>
<t5jhun$6sd$1@dont-email.me> <ef81e10a-e92d-2ad8-aae8-4a935af22a9e@gmail.com>
<CAPTjJmru49zz6MqbcP92EdWb4c2FvpAXTL6H79q_BEnw+JJZ-Q@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de mB29T7p8UPQhxEyzAxLjiwLyRETW7JRtHIPbUrj+IDig==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=AoUxYQhs;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.011
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '"it': 0.05; '2022': 0.05;
'dan': 0.09; 'linux': 0.09; 'that.': 0.15; 'chrisa': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'interpreter': 0.16; 'launched,': 0.16; 'subject:: "': 0.16;
'subject:Mac': 0.16; 'windows.': 0.16; 'wrote:': 0.16; 'python':
0.16; 'uses': 0.19; 'to:addr:python-list': 0.20; 'first,': 0.22;
'sat,': 0.22; 'function': 0.27; 'do.': 0.32; 'launched': 0.32;
'message-id:@mail.gmail.com': 0.32; "i'm": 0.33; 'subject:for':
0.33; 'there': 0.33; 'script': 0.33; 'windows': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'files': 0.36; 'main': 0.37;
'received:209.85': 0.37; 'though': 0.37; 'read': 0.38;
'received:209': 0.39; 'use': 0.39; 'should': 0.40; 'michael':
0.60; 'tell': 0.60; "there's": 0.61; 'thus': 0.64; 'his': 0.65;
'skip:/ 10': 0.69; 'extra': 0.84; 'was.': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=flm7EIzp+mdHRkVIeHyzzFbfeZ0pn7j3H/R+1bRN7U0=;
b=AoUxYQhssZ3nw4bb2lz49BT/I7mrHFRJg/87/Zbckiy0Y79KAafQ6Fyqv95MZU5RUO
55Pom/fUrQ5gxtjAVzuTkbsCbb4hQpphsUm12HKdBtUP95azHuXvs3py9cjzI1nDI6m6
6A+F3o/35ZPeWUuxq/l6y7U7LOt78j1unO9si2hHm2IZN7ZeBDzGphpRZ6MBZR9AbF4M
Q4oTdiOcSEUhsOUOkfoJacRSMISZQBhZCM6PnGI/QaNtpEJYuK9uH2BU73o0Ic6wtr2P
qkz06ZJPe0KPezkX05QfwIOCYedaOzrMecpaT1OcNFsVialdQanj1xToj4GnRyWOSEnu
4J7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=flm7EIzp+mdHRkVIeHyzzFbfeZ0pn7j3H/R+1bRN7U0=;
b=xcvWu/FLY1xz78QsQNyNs3fiEqzP9ca73HHeeU2IF8+M3X86VvBZYmc3Tthj/fA5vD
sFu5iz4ySGNc+kpQDrY+lrNYwGaoaKQDVmcrhp13AnlFuh6shxkHTM/kNPegjzxbtYbs
SCf2AizwQmq1jO9icdBg/SfacN9wWngusAeNxDcKieSF9BAAB0V2Q9sn2RDWZfB1+taa
kUqlPG4ZnHZ0daSO/V5TCeAFG2CeheZAomsfBA67lo/pzM6Ns6Ha5k53rH3Fd2Qc9mJk
3zJ3UNz4dNE428njTavbi0BZyIgqT8zN5HV6VxSBrctbK+LWG8xoxWv7daV85DWvuuRz
EA9A==
X-Gm-Message-State: AOAM530q/6uzQoQZ1N6aAs8v9dojM9gpqywpt9E0ctLdM1OeqQsDZyt7
GJ1RNa9s9oCrBmCqlDC3WqHDINlfb1tnYX+XbZ41ZzOw
X-Google-Smtp-Source: ABdhPJzbaDLV5OHxZkxTaUQbedP7UlLTr7q3yrPqRKoDt9c8wDUO9QnnqpkBTvU47A28qlccXjih3BP+1Iicc2iVBjw=
X-Received: by 2002:adf:e192:0:b0:20e:62e8:4559 with SMTP id
az18-20020adfe192000000b0020e62e84559mr10414181wrb.564.1653097817336; Fri, 20
May 2022 18:50:17 -0700 (PDT)
In-Reply-To: <ef81e10a-e92d-2ad8-aae8-4a935af22a9e@gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmru49zz6MqbcP92EdWb4c2FvpAXTL6H79q_BEnw+JJZ-Q@mail.gmail.com>
X-Mailman-Original-References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<d32aa4c5-7dbd-cce2-2e85-e9739ec5d786@wichmann.us>
<mailman.387.1652378167.20749.python-list@python.org>
<t5jhun$6sd$1@dont-email.me> <ef81e10a-e92d-2ad8-aae8-4a935af22a9e@gmail.com>
 by: Chris Angelico - Sat, 21 May 2022 01:50 UTC

On Sat, 21 May 2022 at 11:22, Michael Torrie <torriem@gmail.com> wrote:
> And of course the answer given by the grandparent is that Dan should use
> a normal linux shebang line in his scripts and on Windows the py
> launcher will read that shebang and guestimate the proper python
> interpreter to use and execute the script with that. Thus if I'm reading
> this correctly, a Linux shebang line should function as expected on
> Windows when python files are associated and launched with the py.exe
> launcher, even though there's no such thing as /usr/bin/python3 on
> Windows. Py launcher makes it work as if there was.
>

That's correct, and when the py.exe launcher was first, well,
launched, the main thrust of it was "it uses the shebang that you
already include for the sake of Unix systems". You don't need extra
directives to tell it what to do.

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor