Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The nation that controls magnetism controls the universe. -- Chester Gould/Dick Tracy


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

SubjectAuthor
o "py" command for Linux and Mac?Dan Stromberg

1
"py" command for Linux and Mac?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: drsali...@gmail.com (Dan Stromberg)
Newsgroups: comp.lang.python
Subject: "py" command for Linux and Mac?
Date: Thu, 12 May 2022 09:25:24 -0700
Lines: 19
Message-ID: <mailman.384.1652372738.20749.python-list@python.org>
References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de JaDw35kYZZwgFXi9difJmwz5q2bVKF36nAFCyOvPQF5Q==
Return-Path: <drsalists@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=herQqyj2;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'searching': 0.05;
'windows,': 0.05; '2.7': 0.09; 'linux': 0.09; 'pypi,': 0.09;
'steps': 0.11; 'does,': 0.16; 'from:addr:drsalists': 0.16;
'from:name:dan stromberg': 0.16; 'porting': 0.16; 'python3.':
0.16; 'subject:Mac': 0.16; 'python': 0.16; 'probably': 0.17;
'to:addr:python-list': 0.20; 'code': 0.23; 'command': 0.23;
'thanks!': 0.24; '(and': 0.25; 'tried': 0.26; 'subject:"': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; "i'm": 0.33;
'subject:for': 0.33; 'particular': 0.33; 'received:google.com':
0.34; 'from:addr:gmail.com': 0.35; 'received:209.85': 0.37;
'received:209': 0.39; 'use': 0.39; "there's": 0.61; 'finally':
0.62; 'gives': 0.62; 'ever': 0.63; 'heard': 0.67; 'skip:# 10':
0.68
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=4dTGDLiOQ4m5j8GUHIyC87dAOXEjftOsX7bfvHaN6DQ=;
b=herQqyj2C5W/BQvs0XxgLXg30hNEVyk+cfFjlHs+5u5IrfRtm9/xi+bOZS1sZC4a6l
7l6AAMooGVvruInoPH8s0uHnbNq0v7CYj/vkCfeohIawdyVRkI1JqzCKXEVlSN0epgOs
StSTVxN0a3TK9Hg0f23bwBWQ+QYxyLCr+tpibhH0yBn9qwpHMVUqX5CQozke8hNoOZBC
f/vTcqUeuV2qXlh8V79TZaT/NaSrdX57+3d1BXOaKYW5+8K8HMbycHoPshXOfUOSuFMD
Lsffv9nWPP7iYfsxGrxDLl6oryOqm3qee57iIZBP365X+ZlS/tyKQOgdouMilGtZgfP/
F/2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=4dTGDLiOQ4m5j8GUHIyC87dAOXEjftOsX7bfvHaN6DQ=;
b=O8tdpDxhwU4vE+JIx9Fm9W2N4uTW/0o9+AfPLGbtmdFVmvcgnSwEnO1sl5PMKSURdC
Gb1tmpbl0B7RlychbqFLDwgVbDKWzBRbNKH5lXujupzeBKgU7e0Kim2On+UMV0P/xSEN
WMP77K2jTydWkgt4OIe+/gbztyBJpKSo81qB5Vb3qEScgOfS0dRcMNCe++aqiuTZvpja
ZASgZZRCGKy/H8Q2NbABCgK1N2BHOyZw4uFzsenAt5O4QDa9pq4tjEEtKygoxNg4fPaa
Nz3cHzTBWJz8MrpKQklPi+MrrFh0kPXcnkHIqPpof/IkeAWbBKYFCMQx+tA5PHao+BoB
/u3Q==
X-Gm-Message-State: AOAM533qXDmR87U54m4or1/WRLTztX3nKPNUN6h6q2eikB7fRIODAaOO
w93+Fpi524YUs5cr6ENYcUkz8UXtklKatz+3JQZxbgtT
X-Google-Smtp-Source: ABdhPJw7QQ3wR+uwz4vX4xcy0WjJ+z39e2PGgWzBT2xQcVtAdznkVTAH9dxIp1OX7kVhqlSDNlPNadg5p8GNNAeywvM=
X-Received: by 2002:a1f:21c1:0:b0:34e:7e94:2539 with SMTP id
h184-20020a1f21c1000000b0034e7e942539mr468011vkh.18.1652372735765; Thu, 12
May 2022 09:25:35 -0700 (PDT)
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
 by: Dan Stromberg - Thu, 12 May 2022 16:25 UTC

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?

And if so, where can I find that "py" command for Linux and Mac?

I tried searching for it in Google and on Pypi, but unsurprisingly
searching for "py" gives a buzzillion hits on other things.

Thanks!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor