Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

BREAKFAST.COM Halted... Cereal Port Not Responding.


devel / comp.lang.python / Re: Argument name should be lowercase

SubjectAuthor
* Re: Argument name should be lowercaseWeatherby,Gerard
`* Re: Argument name should be lowercaseStefan Ram
 +- Re: Argument name should be lowercaseChris Angelico
 `- Re: Argument name should be lowercaseWeatherby,Gerard

1
Re: Argument name should be lowercase

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: gweathe...@uchc.edu (Weatherby,Gerard)
Newsgroups: comp.lang.python
Subject: Re: Argument name should be lowercase
Date: Fri, 11 Nov 2022 11:28:53 +0000
Lines: 92
Message-ID: <mailman.914.1668166164.20444.python-list@python.org>
References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
<SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de IddMWctAERO1qyA1nR3xpA+33nlU9KrEBCcgJbC3PLoA==
Return-Path: <prvs=031452640d=gweatherby@uchc.edu>
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=uchc.edu header.i=@uchc.edu header.b=ATbEQ6MW;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'def':
0.04; 'pycharm': 0.04; '2022': 0.05; 'parameter': 0.05;
'explicitly': 0.07; 'pep': 0.07; 'subject:name': 0.07; '=dn':
0.09; 'designation': 0.09; 'received:namprd14.prod.outlook.com':
0.09; 'skip:x 10': 0.09; 'treated': 0.09; 'url-
ip:13.107.213.67/32': 0.09; 'url-ip:13.107.213/24': 0.09; 'url-
ip:13.107.246.67/32': 0.09; 'url-ip:13.107.246/24': 0.09;
'values.': 0.09; 'tutorial': 0.12; 'import': 0.15; 'url:mailman':
0.15; "'python'": 0.16; '(why': 0.16; '***': 0.16; '3:56': 0.16;
'above)': 0.16; 'constant': 0.16; 'dict': 0.16; 'incompatible':
0.16; 'lowercase': 0.16; 'object,': 0.16; 'programmer.': 0.16;
'url:urldefense': 0.16; 'url:v3': 0.16; 'yield': 0.16; 'python':
0.16; 'values': 0.17; "can't": 0.17; 'calls': 0.19; 'to:addr
:python-list': 0.20; 'code': 0.23; 'skip:p 30': 0.23; 'anything':
0.25; 'python,': 0.25; 'saying': 0.25; 'url:listinfo': 0.25;
'11,': 0.26; 'friday,': 0.26; 'opening': 0.26; 'received:edu':
0.26; 'function': 0.27; 'expect': 0.28; 'email
addr:python.org&gt;': 0.28; 'convention': 0.31; 'modify': 0.31;
'module': 0.31; "doesn't": 0.32; 'concerned': 0.32; 'personally':
0.32; 'python-list': 0.32; 'but': 0.32; 'script': 0.33; 'use,':
0.33; 'header:In-Reply-To:1': 0.34; 'failed': 0.35;
'particularly': 0.35; 'yes,': 0.35; 'functions': 0.36;
'header:Received:8': 0.36; 'received:filterd': 0.37;
'received:pps.filterd': 0.37; 'using': 0.37; 'though': 0.37; 'url-
ip:13.107/16': 0.38; 'quite': 0.39; 'date:': 0.39; 'list': 0.39;
'use': 0.39; 'ide': 0.40; 'should': 0.40; 'charset:windows-1252':
0.60; 'email.': 0.61; 'skip:b 30': 0.61; 'from:': 0.62; 'to:':
0.62; 'come': 0.62; 'definition': 0.64; 'upon': 0.64; 'shows':
0.67; 'mind.': 0.67; 'matter': 0.68; 'files:': 0.69; 'url-
ip:52.6/16': 0.69; 'analysis': 0.69; 'skip:w 20': 0.69; 'within':
0.69; 'ignore': 0.71; 'skip:f 30': 0.71; 'global': 0.73;
'relevant': 0.73; '....': 0.76; 'clicking': 0.76; 'cross': 0.76;
'poor': 0.76; 'quick': 0.77; 'links.': 0.81; 'attention:': 0.84;
'comments,': 0.84; 'email name:&lt;python-list': 0.84;
'indicates': 0.84; 'skip:& 50': 0.84; 'warning': 0.84; 'weird':
0.84; 'behind': 0.88; 'consists': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uchc.edu;
h=from : to : subject :
date : message-id : references : in-reply-to : content-type :
mime-version; s=UCHC03162020;
bh=9VV6MjcYfFv1gD9d4A1B2IxErFGd7NXnHqv3BIuh2z4=;
b=ATbEQ6MWv3JO7Cmo/E9rq7VFUWdTl/dIc60oXoZwFd/FpbEF+WD5GasawhgvcDyfxX3A
pao1wrXygZF45fjHd7LScJ/TPc1oFZfu7SlqRZTTuuQK4LfDpKHL4pTO39jGwpwjoHuP
gl65u4t4l0ASABS0SaA9qDjjjQrEg3bprj0ufx1qJzW50VjzARFucOZRGrd4TgM2pWmL
wJWhnwhRWh+xL9emgDfXdi3cLzOXdvoS2zMVD2VS1F9Ne1LGqesOxWNUGUFYN3fN/0AC
mPo9MnFwO5SUTsxyMfg3z7cYoE8SP1WsgycNb2hwCoKNOixupdkqj5AZU1giCrhtlRuH qw==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=bmrYP0zKGbSHPcDcNYJuQHiJzIlGdFLDdA00uGo/mQt1PBNT0eVIGj5en0o9Ha2kD1z+JdShMxg758Nfzkr5yVjIHDBVBQ2428yn+0trRCt3ZGRfZ4d4pBl/HfHrGzmkZ1dU9NMUQzy27MauQuesgoMUgQP+1UzTIqicew9R0SIrfoZCHzQFwc/ifqC97QfJAg8Z/BF13MDPeO37jyBiWA2/gdVvR/HRcOzA1peMKbrUNZWyi2VxKN1BKLYdtXqIzI+h2fHpTfZGH5U6WEGCHU3VzdntWDxqsTcydWir4pkOv6/im/J8sMm9cIEhUKqCjplRqUWww/b428z3DWdXEQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=9VV6MjcYfFv1gD9d4A1B2IxErFGd7NXnHqv3BIuh2z4=;
b=i+jOerONS14C5fr+ZZdWmzwE/stpM+lfc22lV+NKUvqdDoz7chuDepJaS8tHYXWk4mOMZzvJ8gyDJzsfMK6rqc1fY02aYswCC84F32YpFtBVms8GySEPWzyKpKIzC1cgurWMmmVlha0vwexMFr+5FkIiaCKzkMN0zsr2uGkfiYyjA00mrPDSq4S33aDYqj+1qtUp+R1WF6y3wAa3xBs8wYVwMdbTcNr8xy/QRbRyfDaU1/ZFqBJtIGd4EXNpZfhF1hEZGRr1lqMBJcuDowiAMBiQiqfdzJBvsVKAJjby3i0X8u9u5LkK9/BFGxMbpESer9h4KkXwjy7Jqdmr3qPRpQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=uchc.edu; dmarc=pass action=none header.from=uchc.edu;
dkim=pass header.d=uchc.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uchc.onmicrosoft.com;
s=selector2-uchc-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=9VV6MjcYfFv1gD9d4A1B2IxErFGd7NXnHqv3BIuh2z4=;
b=mhRek8bmUvIcRwoSglhFowTmkS3K1bbtsejV03GFWlB5ndww6Bq3he13tfhqJ9rquK58FAFPFZWWYEsPbLBZoK6VzVfd/NjdFYUwG8jCRV3areJol17jR1uYBAPDqa6tsvrsRpLKjZYfO5LN83buOphXS3f/bmdgdwbM5rJl1Og=
Thread-Topic: Argument name should be lowercase
Thread-Index: AQHY9at7XampZ0OPWEeu0cye7gT6lK45lMBO
In-Reply-To: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SA1PR14MB5855:EE_|SJ0PR14MB4250:EE_
x-ms-office365-filtering-correlation-id: 24ede415-70cc-4f97-4d30-08dac3d7ea27
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: FOQOz6CL5N46GWtS6miHdupnl9MXpFJqGgICtbHK18syUNL05c0idAqEjI4LfX9RGXQ1BE1uHcYfuEaueIstUvDvFejILK/+NqPbMfa5uLXKlfOMPS+2S/5n/IZ7hvK+tD+dYxIW5NkVrcScCPyZIOG3mtJ2HLX3XsgF8p9F2FJV82ma+pFG8GbrwjoLjS74vl/wWg+dSxbgw5tchcyaznj4oZ6ipkPtAAUqtRsij+D+rMsKHr8UK8371QpGsLMy1TKNgL8tRiIqhiW+geRoGQNZQS68JX9hfVgHLF99jeGlLOkrn9ZNpfMfNCw92D6mm951kx+bEymrRc+AiUxqpb0zBVSzcTPgsOvWPrJhWs474KSNBoi9qtH3tJCA64Y9Qi9+wPPM3j8d1P007tJH2OL1HQtYeB5C5VN574JNpeegm7hCJzKjV/Dn9n37UBo0shiYwkcNGJqfrLNEFWz1lVogciO6hJGwFyFC4Xg3z/14PTb/1kH6ew37k71LIOgRr1ZvFL/uiZfJ2tTisXHHNcoD+F+M80NVTjReH2g8ih/+wMMmWLcn5o/cDsfAlP4zYtzbylGfrmeUKJHfrGEBQHqX31MB15C23XnhW6lVrsUM1K5wzba5zn1jGOHlrYoH2weEdwYmWU1LaIDfx+2PbeHmgoy6vebubQdbPDS7BIOyZAma7qjNAdENUvlgFP+ylx6QN6kRr7nhstXVCzqu49kSbeMDGJS0FpFt30svGZH4+zRXXDCBJVR35S6PMsIMBKwWIuG2B1QasoNNbo6rk/vYaTpm9CPkFhZG8U3KsEc=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:SA1PR14MB5855.namprd14.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230022)(396003)(366004)(376002)(136003)(39860400002)(346002)(451199015)(66899015)(86362001)(41320700001)(76116006)(478600001)(966005)(71200400001)(66446008)(26005)(7696005)(53546011)(9686003)(786003)(186003)(75432002)(41300700001)(5660300002)(91956017)(52536014)(8936002)(64756008)(83380400001)(110136005)(38070700005)(66556008)(2906002)(8676002)(66946007)(66476007)(316002)(55016003)(33656002)(122000001)(6506007)(38100700002)(166002);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: F0MfN3lKCtyTBzcvbyi7yIJbg1hwMrA2MfeHrU/T6rRhyxYyXJhvDTR8
FUPrKKe5ELP6aKg2433Rb5dzwWvv4RxAWLum+rHa9Ug1/7o/5UIgXWhm
Y0pXCIlgQP5TPKNwLiQpldyGSuMIGWSB45VHPWeC9av+6RfPsL71wNc2
9vNt6GFWVzZiHjjpPIqg8sEf2z1KFyEGzHiDy/bYp4W5JkeF8T1pOpVC
FAD+KU3HH80rzR0UAc3JiRi9ngLgeV/ZrRsZ18tVAFEdU+rLohgGvZ37
37lfjXhqeP36hy00FNQpjq2yRnhbIysSwK3Qofn9qCXGyhYM/8F7/DjG
fAjOvOYZHpjZMn6gza9089bQRNglou2RUA+fRUb4vDE5a4TtunPeFDN8
uaZhGKgtO9OwxcY27xQImd+3iYXPd9fx0O65jcSi06yblmGAUntFG1vm
o5Ap4QFiLFGGIYjvQVgzD+3g86+UHVoFaBM+awkbmFChWCwnGYGTRtd0
+Ipx76M/9cIz3ZobAfGkcKxjJRJo12fr+V8/AwKToMkZpiyjehyx+CnK
WrrhTB+ao9R8Mq6suEugsWlbLDNMv6yhBe0wz/1f7hrjmyUwAzAVJ1W7
cDQw4Mc6jS9dQTb/4pA8u88qFNHqB+HzTE1tZ07G+5K/ckCO3PeGGWhR
OZn720DfacvRwp8syFV31Eb0ccDkHj0crhpSt/FgTvZC4rjaHOJPBkOA
nl5wmOOthYMFEf7k4JqG/SFuVjDKNrfUu4cJf5Za49kzem8nDrbL9Hos
U5Qb4LwztFYdK/NIp5SkyYpBsBwW8cw/xqGeo16BgRsKULs/T8uGuPNn
2vWITUZ26gW7cOHpcrOwB/9DAM361SNlh67kbAWEf/S7ZQeWEWZwxtQA
vE1Yp3YQrFmsjmOc1K8EcW3WMAM6dIY/XUojr7Y3GgIgr+XFLPWi57Wc
C+HZK9amUQQBbN+gwa+Lc/PaFhwgfTeWTHGc/DPn2XMdmFW8JAQx2RN1
tSdp5otX91KoDyPwAQgjT9zNx+p+7viSf9fk6Nbl4DUw4jUsPtyAL6yQ
jrsDhtdGHYxi+bKmv5b/lPsfgiEEYTg9/kjGHisEoJgGxsbOFgVj5Z92
iNuUSKtGsCgSVVtYuGB5jPqrz0pTFADqRuAYeLWN6gFm8fUbOWeUqhUX
0dXW5eDAEk9Ls7bgEWEduS9YPwygZ1Rn5kfxuQqcgK+d+6dKd1J/obWY
FJN/2pU7G9qeJ5LLEWl/PfcTzvQ4pzJr2hYeLwYQvrKrRdXT+6Kl3WeH
SCpVKqe3EwgoieEQAehOUi39NjM7AdCu3he1HfaTI4V6q/g9jI83aoc8
h7IvgxjYNXzCZxJRoALk1HhDcpPTVI+ZDPGBbxDJK0XL0bE96P/IAKeR
s8hb1dYhy++sd92ycgtu+MxYOY/LlWeJOw9z8E0G4ZZ6H0gmF/4+rI40
CjRc/f4l1A65Ax2Keow1tVAzGAucApgfxmE7vyWTN4h1K5T23Dsi+IxP
Ad+KlLXwKb9GPOeJiBgkClr5yc6+KJXUWBNeL2SBYE5i2mKPocpuTEfu
zW7X/pKcL1B/G1ErjWfzotHD3gTQqNcky1PlCJNg2TAUG788XZlnYw
==
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SA1PR14MB5855.namprd14.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 24ede415-70cc-4f97-4d30-08dac3d7ea27
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2022 11:28:53.9706 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5c82d83a-818a-4c16-b540-ded2344a7ad3
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 9IgCOktFCm7gER9g/g7D1EOPGkNd5ws86Ysv6vQYG9mcPBM9V07BR+A+eOxEtANfFfQXyBivSSSOH9tBkQLoMg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR14MB4250
X-Proofpoint-GUID: bEwh2E5JEgCyq1MUzxX7oLKNKH2oyMhD
X-Proofpoint-ORIG-GUID: bEwh2E5JEgCyq1MUzxX7oLKNKH2oyMhD
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1
definitions=2022-11-11_06,2022-11-11_01,2022-06-22_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
mlxscore=0 impostorscore=0
bulkscore=0 mlxlogscore=999 spamscore=0 phishscore=0 priorityscore=1501
lowpriorityscore=0 adultscore=0 malwarescore=0 clxscore=1011
suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1
engine=8.12.0-2210170000 definitions=main-2211110076
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: <SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com>
X-Mailman-Original-References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
 by: Weatherby,Gerard - Fri, 11 Nov 2022 11:28 UTC

PEP 8 doesn’t explicitly list a naming convention for function parameters, but every example shows them as lowercase, even though the function doesn’t modify them.

See also the Python tutorial ( https://docs.python.org/3/tutorial/controlflow.html#defining-functions ), which also shows all parameters as lowercase.

I’d personally find it weird to see an all-cap parameter (Why are you yelling?). I expect ALL_CAPS to be hardcoded values.

From: Python-list <python-list-bounces+gweatherby=uchc.edu@python.org> on behalf of dn <PythonList@DancesWithMice.info>
Date: Friday, November 11, 2022 at 3:56 AM
To: 'Python' <python-list@python.org>
Subject: Argument name should be lowercase
*** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. ***

PyCharm is warning against using an identifier of all upper-case letters
as a function's parameter, saying "Argument name should be lowercase".
(weak, code smell)

The application consists of three+ files:
- configuration
- mainline script
- module of workbook functions

The mainline reads the configuration parameters to set the application's
environment. All of the config/settings are constants. Some of them
appear as a dictionary (PRICES_WORKBOOK) defining a workbook's
(spreadsheet's) parameters, eg the filename, which work-sheet to use, etc.

The mainline calls the relevant functions from within the module,
as-needed:-

import prices_workbook as pw
....
product_prices = pw.build_product_prices_dictionary( PRICES_WORKBOOK )

The module's function definition is:

def build_product_prices_dictionary( WORKBOOK_DEFINITIONS:dict )->dict:
....
price_array = xl.iget_array(
file_name=WORKBOOK_DEFINITIONS[ "file_name" ],
...

(the function def is flagged, as above)

A quick scan of PEP-008 failed to yield anything relevant. Why is this
frowned upon as poor Python, or a matter of style?

Yes, a dict is mutable, but the upper-case denoting a constant indicates
that none of its values are to be changed by the programmer.

As far as the function is concerned, the dict and its contents are
constants.
(but the dict can't be treated as a global ENV[IRONMENT] object, because
it has to cross into the module's namespace)

Is passing the dict as an argument/parameter considered to be
incompatible with its designation as a constant?

Perhaps the style should be more enum-like, ie the dict's name in
lower-case, with the key-named in upper case, eg

workbook_definitions[ "FILE_NAME" ]

Am not particularly concerned by the IDE raising this as a 'problem' -
will quite happily ignore and carry-on; but am curious as to the logic
behind the analysis - and why it doesn't come readily to mind.

Advice, comments, critique welcome!

--
Regards,
=dn
--
https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!h56Cia7ERYDmxaCnEo0k9hfXz-mTJrz43UqHjbfhwLjutjhQE1QU975lUXTBf38la5kXAkBHdzyzOY4XAObbAPOa-ebC-HNY$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!h56Cia7ERYDmxaCnEo0k9hfXz-mTJrz43UqHjbfhwLjutjhQE1QU975lUXTBf38la5kXAkBHdzyzOY4XAObbAPOa-ebC-HNY$>

Re: Argument name should be lowercase

<parameter-20221111130028@ram.dialup.fu-berlin.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Argument name should be lowercase
Date: 11 Nov 2022 12:03:31 GMT
Organization: Stefan Ram
Lines: 17
Expires: 1 Sep 2023 11:59:58 GMT
Message-ID: <parameter-20221111130028@ram.dialup.fu-berlin.de>
References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info> <SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com> <mailman.914.1668166164.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de R99mrVXj2PGWjs+uoyWz8w1Ysq1Ca3bcQp8M/VFByOeNS1
X-Copyright: (C) Copyright 2022 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Fri, 11 Nov 2022 12:03 UTC

"Weatherby,Gerard" <gweatherby@uchc.edu> writes:
>I'd personally find it weird to see an all-cap parameter

In the source code of the standard library, all-caps
notation is used for a parameter name sometimes
if that parameter name is "URL" or sometimes
when it is being initialized from an all-caps name as in:

|def __del__(self, _warn=warnings.warn, RUN=RUN):
| if self._state == RUN:
....
from "pool.py".

("RUN=RUN" makes RUN have the value "RUN" had
at the time of the definition of the function.)

Re: Argument name should be lowercase

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

  copy mid

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

  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: Argument name should be lowercase
Date: Sat, 12 Nov 2022 07:20:58 +1100
Lines: 26
Message-ID: <mailman.923.1668198070.20444.python-list@python.org>
References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
<SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com>
<mailman.914.1668166164.20444.python-list@python.org>
<parameter-20221111130028@ram.dialup.fu-berlin.de>
<CAPTjJmqfOjsBmXsfpFYHd51FFjRsptoNCYV=DsXZpDoUwewUnQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de PoYs9IcbrLipdRCP20bKqg93r1Q/vjWg0gqZlxKPSxWQ==
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=Idd1S1BH;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05; 'parameter':
0.05; 'ram': 0.07; 'subject:name': 0.07; 'library,': 0.09; 'skip:_
20': 0.09; 'writes:': 0.09; '"run"': 0.16; 'chrisa': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'received:209.85.218': 0.16; 'wrote:': 0.16; 'to:addr:python-
list': 0.20; 'sat,': 0.22; 'skip:_ 10': 0.22; 'code': 0.23; 'run':
0.23; 'stefan': 0.26; 'function': 0.27; 'guess': 0.32; 'objects':
0.32; 'personally': 0.32; 'message-id:@mail.gmail.com': 0.32;
'but': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
'source': 0.36; "it's": 0.37; 'received:209.85': 0.37;
'received:209': 0.39; 'still': 0.40; 'skip:o 10': 0.61;
'definition': 0.64; 'in:': 0.64; 'performance,': 0.69; 'reasons':
0.84; 'referenced': 0.84; 'weird': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=tfktdIAT+KMGKVKKiqrpiUe0nmxEg7nfkncteGlfgBQ=;
b=Idd1S1BHXn9El5vkeJdaH2Qvcg1yACk1GsOjTi/alStew9OIcco5Grwgg13i4BtVgw
SjlfsJTK/2qXlOvTDpqiYi4ozeYkieft4ZFY57eJaRRADPYGhmbobW3BVLLseg7v2Xcz
33xiEpLpvhZC3IEJ5Juxq5iZZA7DldLmhtZQypraw7dgLTki6uS/O45Nl8+/s3C76Blc
FayHFLOpaOmMPmJLrPEeGLxqelLIYPp0M09/FDtpgLculuIVkrO9XNOi2d9JGE7ypFU0
5s04lOpBTbcEmD3DrAFA1Nxct2UmmxAkE/ASehk+iY4uubUtSST6VIDCWlVCR4Gxek/+
9gmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=tfktdIAT+KMGKVKKiqrpiUe0nmxEg7nfkncteGlfgBQ=;
b=QcTSIJMxVIfABI+mYG2bfUD3TNI6VgSyFlHGyDM3dQx+lxh75Yp9JzTolZL1GpB09c
qdn7nQAzjhyvLcbZRyMlm7U/iyleTTQNSYhyq7AlSCNnQ/zrG4C5M1XJ7dSHc4u5CzDb
AxH+cl3g9vKkUZFX1LOW7F5fTd81fQD4CMDWQf/+RNe1J79CsNoc8WBJhxwvY4Jwzn6p
iPEJVV+a1LPeHr0s2bR7r952Q4UxZYnoAiur5Jkqo/n5VGTNN239SLk/pXJXxAlxqjLN
wl8AdmW0YrmMpdOY4Com/rN3+4nEG9gMA2rEErR1ApP/1zM7BSlxXQXvnRWqhxrW1O0o
h6qw==
X-Gm-Message-State: ANoB5pkmQcULl5US9HvdvBikTNHQCY+HuWGK0mLU27PKlNZbC139fkXM
z5uoeJLHaTaTlnVzWzcuzcVi8UCAj2yrM70SG6dSsYYK
X-Google-Smtp-Source: AA0mqf7mypipBaURDTblBDQ+PlWtX3lBeSazaCGRi92Zc3JJH94X8acJPzQnLZwXIPqJGHvr9JZYP3d8Y2jo+ToHO48=
X-Received: by 2002:a17:907:c01b:b0:7ad:9891:8757 with SMTP id
ss27-20020a170907c01b00b007ad98918757mr3227311ejc.335.1668198069415; Fri, 11
Nov 2022 12:21:09 -0800 (PST)
In-Reply-To: <parameter-20221111130028@ram.dialup.fu-berlin.de>
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: <CAPTjJmqfOjsBmXsfpFYHd51FFjRsptoNCYV=DsXZpDoUwewUnQ@mail.gmail.com>
X-Mailman-Original-References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
<SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com>
<mailman.914.1668166164.20444.python-list@python.org>
<parameter-20221111130028@ram.dialup.fu-berlin.de>
 by: Chris Angelico - Fri, 11 Nov 2022 20:20 UTC

On Sat, 12 Nov 2022 at 06:42, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
>
> "Weatherby,Gerard" <gweatherby@uchc.edu> writes:
> >I'd personally find it weird to see an all-cap parameter
>
> In the source code of the standard library, all-caps
> notation is used for a parameter name sometimes
> if that parameter name is "URL" or sometimes
> when it is being initialized from an all-caps name as in:
>
> |def __del__(self, _warn=warnings.warn, RUN=RUN):
> | if self._state == RUN:
> ...
> from "pool.py".
>
> ("RUN=RUN" makes RUN have the value "RUN" had
> at the time of the definition of the function.)
>

There are a few reasons to do that "snapshot" trick. The most common
is performance, but in this case, my guess is that (since it's a
__del__ method) it's to ensure that the objects are still referenced
when this function is called - to stop them getting disposed of
prematurely. Very rare, but important occasionally.

ChrisA

Re: Argument name should be lowercase

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!sewer!alphared!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: gweathe...@uchc.edu (Weatherby,Gerard)
Newsgroups: comp.lang.python
Subject: Re: Argument name should be lowercase
Date: Sat, 12 Nov 2022 14:40:56 +0000
Lines: 38
Message-ID: <mailman.946.1668265576.20444.python-list@python.org>
References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
<SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com>
<mailman.914.1668166164.20444.python-list@python.org>
<parameter-20221111130028@ram.dialup.fu-berlin.de>
<SA1PR14MB5855BD2C125707400268EFD8B9039@SA1PR14MB5855.namprd14.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de hRC3Ie19C+iGt6fldGzcCwmZSvY0EDXuw8+M9f8Khshw==
Return-Path: <prvs=0315b25f7b=gweatherby@uchc.edu>
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=uchc.edu header.i=@uchc.edu header.b=mrEtQGd4;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'def':
0.04; '2022': 0.05; 'parameter': 0.05; 'ram': 0.07;
'subject:name': 0.07; 'library,': 0.09;
'received:nam11-bn8-obe.outbound.protection.outlook.com': 0.09;
'received:namprd14.prod.outlook.com': 0.09; 'skip:_ 20': 0.09;
'writes:': 0.09; 'url:mailman': 0.15; '"run"': 0.16; '***': 0.16;
'email addr:zedat.fu-berlin.de&gt;': 0.16; 'email name:&lt;ram':
0.16; 'explaining': 0.16; 'lowercase': 0.16; 'pool': 0.16;
'url:urldefense': 0.16; 'url:v3': 0.16; 'python': 0.16; 'to:addr
:python-list': 0.20; 'skip:_ 10': 0.22; 'code': 0.23; 'run': 0.23;
'to:name:python-list@python.org': 0.24; 'url:listinfo': 0.25;
'11,': 0.26; 'friday,': 0.26; 'opening': 0.26; 'received:edu':
0.26; 'stefan': 0.26; 'function': 0.27; 'email
addr:python.org&gt;': 0.28; 'personally': 0.32; 'python-list':
0.32; 'header:In-Reply-To:1': 0.34; 'header:Received:8': 0.36;
'source': 0.36; 'received:filterd': 0.37; 'received:pps.filterd':
0.37; 'url-ip:13.107/16': 0.38; 'date:': 0.39; 'use': 0.39;
'should': 0.40; 'email.': 0.61; 'method': 0.61; 'from:': 0.62;
'to:': 0.62; 'copy': 0.63; 'definition': 0.64; 'in:': 0.64; 're:':
0.64; 'during': 0.69; 'url-ip:52.6/16': 0.69; 'global': 0.73;
'....': 0.76; 'clicking': 0.76; 'links.': 0.81; 'attention:':
0.84; 'email name:&lt;python-list': 0.84; 'locals': 0.84; 'skip:&
50': 0.84; 'weird': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uchc.edu;
h=from : to : subject :
date : message-id : references : in-reply-to : content-type :
mime-version; s=UCHC03162020;
bh=7U550LODUUP3i8C2Vd5/R3ZfVE0yleB/05A223LhrEo=;
b=mrEtQGd4kPv4ptURKS2f8JqMtBIa8HtScOmXyQYBSXU3h1YZ29YJo1Ngtjoz8qwhIiIw
S7AWacsNJywoERpgQ1X84Wh0dmwY2EOZHAVCQi1K3rZBI3PbthYLmclWsKYa3pn72XCb
E2lt4VDCZMU2Z0c7jRmn35hNTg821WM74Nw66a2nxkVlOa3g22M/6ehHp6OeaDZSBoCb
UXtVc2EkFPbx59bfoNL9mJU08+8uQQmozlJYR58NGL/rExIPGjKZSc0lHQh03YwDyKlj
dI3UKaWHNPJqCU0ZOHCJrIRL5Ll6L/6ZzSek8hqj8tnepCxB2JhR4HU6t586MAj1C9pN VA==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=O7zczwiNg7rjtqfev8BrBxxWpwNzOEO2ZrGIhxxphdyvRqLQM7keFPMxagDc9xMJLzMpXTK7Grt2QJLeEVAXNndXhJjlbt66wmW2JCkGz/OKfj6Uw8y/PxIunQn7dM2j6b6Mw62PYpYV47Yc3OLpfqjks77+Esj1hn8HFAnslceURnBKgWZ4yWy+jhliBCvvhBxU0LJEjFSKgGOAC+rPbQfc9rwKgnNdj1I15/qtoZ5G+koxtgrunHg0mkPpFS+0SGnHqk1Lpmrq1itYAJz16ZVrAmkB5d7YnhLjSDqH8QkAsVuluAcMILHMdiysjXGFpzFP0TTtIHpagxGK05nu0g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=7U550LODUUP3i8C2Vd5/R3ZfVE0yleB/05A223LhrEo=;
b=OXnENyC8XkevHoRSz1MsTlKoU5MJLLJCBSUUnL10PqSYPB7y2MvNNV+ORkLpXZA6cYnvO9AvN/8fOCWPfcKM7Qh6EEihSQNRBQJcocKA8aPplv5q7QUbppzHz8dB2GEaFg92ulqEZrPtn9X0+tK+QBCDP9iOUe8/FUyT7W7TQnyEG+cjP0fkPknWCdsBcZjZf67lnCv9viCqDAMLzNjPm/+2yeszxRYMRnQqE3cdsVYiBIfdcmo94gPRQ06mQTYluZUmFT+PKQWnRjki6Y6JU34uogXwwfTI1Uq54scXeTS9ceEn1ntk+zbu2m6WMxefx4WLU0lf56bEr2j7eNC8zg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=uchc.edu; dmarc=pass action=none header.from=uchc.edu;
dkim=pass header.d=uchc.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uchc.onmicrosoft.com;
s=selector2-uchc-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=7U550LODUUP3i8C2Vd5/R3ZfVE0yleB/05A223LhrEo=;
b=H7c1CzBzcPELp0SjibOmrwj0u/afYPrXL0ju3UvwfOd07An4IQ8RNRm85ai/lmv2Ga76NMKxUM5mlK60Q6DQe1peTHnNTG/c8CK6+wXBapHlkwnq1tjIjyR3UvRi1EUvLrCoK9rupo9+gv4iuZD/aOAmHTMfBBw7gowefObjRdo=
Thread-Topic: Argument name should be lowercase
Thread-Index: AQHY9at7XampZ0OPWEeu0cye7gT6lK45lMBOgACLcu+AAT2+Xg==
In-Reply-To: <parameter-20221111130028@ram.dialup.fu-berlin.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SA1PR14MB5855:EE_|DM6PR14MB4076:EE_
x-ms-office365-filtering-correlation-id: 807115fc-e34e-4cd5-b401-08dac4bbe8be
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 3QqbS5vR+v2CFJ0cAjAAg2SpTb/brACfMYkdBkTXBNVvmXCoHs6pBWy1Ik/Yw6+gNMrQhgSplKymDX96AjISjN5JuTkp+n1idNBuM2dIsUDNYWmJ3fK5HTdywjB0l9+DPRPRx6XIZFEYr2Ov6RwQskYFJtEAkI2t3765ZKJsJF0D3hgwT1KVpIW+mTxdtLTkJpFxpypsoy/MfQSCGh8dW/Dcb7BDkDQ0wTkfvMegWKN+pd/4H/+Z+HwrPAh4vey7BwxWP+yaDk5rwehey0PeCk/I5oj1YxSl0bPVhwYChmzMzEzRrmA2eYYQv6YeXY29nVra1MK6MRYzxyXZzdcOXJ/YB+GNb/ZsF/6CYUAUG1pK74BR0wv1cNm20u/OzZ6U24eHZzRZ6WCeCUnBOEVSUG+lEV+JjpqAG6xQN1HiNAV1HT/hZDzK/H0FXJ206xxsifklqKK7vnRHblEfIfde7vIraDgM0/dglirKTs/UDHvemh5PF+zyBx4Vz6T4V2pT3M/NA81kb9MhvgoLEDl4lrR1gz+f7DEJB1VeEXCsZc24PyXkmct8FJ4xaGGxhSLcihSkpjWATXcrvraGvfTiAKLsZx8lseKmtYw928Zx4iGIOtImk7Sto9AEUZEd+4pKruvIW0BaDuCDpUn0O2aFEAASFyc2rUY87vHj/JE1kt39qG77EP1eHANSK3DM8ooLTQ4Adg1Qvlzj3q1aigQbXGBgZgxBBQnEZSURC50kPu2832LwdLfGYVsXNEmR1Ezh8+CBGc56ACmijjxojWy4xdas8fCjzWD0fx4g1m7mmPU=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:SA1PR14MB5855.namprd14.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230022)(39850400004)(366004)(376002)(346002)(136003)(396003)(451199015)(41320700001)(86362001)(75432002)(33656002)(55016003)(66556008)(66946007)(41300700001)(66476007)(66446008)(64756008)(76116006)(9686003)(8676002)(966005)(5660300002)(186003)(52536014)(91956017)(71200400001)(478600001)(53546011)(26005)(6506007)(786003)(38100700002)(8936002)(7696005)(122000001)(6916009)(38070700005)(316002)(83380400001)(166002)(2906002);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: CVUAxXtbYQXZJmzu9qP1nsGxSi82imskrTFEJ8w0zHoFZa8aVh9tXpeYYnIC
++JlzywlZnH5ttJWpMU+Wlcll+VG+1H8CysdSjZ5mlthDVE9OJ6HT8Hi9VDK
DeQS1okHWA1Oz8A5YETDxZidsIDxoQwpU7kNtyPEl14yknE4868Xz6zQU+iw
TcerNDzCLP+iLB6oSMVKwgpNVAWneJDMN0NXXe3VWUMecME7NFqzTuv/jacB
JfykUu92Za7mx4NyWK+E2d/yDs4bDm7pGdFgx+AFHrjyM5ut2MWhvllas3A3
QIvgFRdsXEVDxjiNwvlcqZD+K2JGjixdQHXvHdb0PM2WttSTfiUfHK9rSxlU
ROawN03yWd3cip5OpFhnLk2+9Ving1CGmTw6e+N0pZuhLDA//1Y1b1ceKzE+
qaiLXS6iHjq6YMu3E+l6fS8lpyH4VRGlx/+fYgBovs0sKCLVNVoxG1NKznJS
j84xkp5vNw4C4Fz1b05xrDN7kWks1ofhcTsn7R/jd6jp4OK0f2jOeXGlmJXW
oXpZhVe9N5jo4Q6l75j+pRpLH+/sWuYW9YZKBs72GI87iqYFrsxJkYXi71ft
S17rNYEallAMb8XLaBqF6GrC7qBoYmaIgmdrB1U3HySwrypDq9TK1TuobXol
4tL91vG47/u1jZcCUOAT8+xiQKkSBIYKx74P3FsoL6svJpn09CXymdaza7+G
+dTOdvNKwseQUU0zSYp7qxgTllI5/h5RenrAem3Nv5lWFZPTFedHGc0UV+Xm
stykzsypFKjZwnrozAHBbkKqyiLDZpXIw1i18L+vTdPwhdNTz0G9IQAgs2Tj
VKWMws/1TZqHjwYq6aw+0h0O+C1ICSDXiRLz37gziObRKhkLulqqloBei2L4
avmAy3GU13ooM2aE6r0Je2mCbr3p5IxOgdRLBq6/GAxFaT54clpA92WOn74f
/lOuYnP4QHKZ/bjrDpgJaxIdSjEsvl/dJpmAyxbe1Yi+3YHpQMWu0bYLOMin
peeItYkQzojfjgSl+b8q5BQAn0aDs+D+g1j+tRRcjFzYW19YI0F51/DD8nPo
eQAcMMmsbrKjUQnqZJ6sGryIEqHJLGysGRqAdsSDf5y1ld4Pc59kovC/76tM
XpdMOjiDdHlr58pImZjHtJ/ePrXkaPjrkgD21P9wOfOgg53/dp7y+evm3IvJ
26jvkK1+6otWA9j0yrtUwFfsnaQOridCkSmdLTtZm+sLNHhLNX4m/iMrofKO
9TdzIWjrsOJrTZ40sxf7z6srgznQ8MdTyryqyChZKzsG/NimDzNjfplG8u7x
rVaM+nw6Vc/f70GB/vC7fD4sH0ym8zMU9lD5VNuUt1n9bBnEHz+JN+QRkk8G
YWVY4z/TovwptZ4O4bb58upRDVAvALgNGS9WU+seJgmMm1G/pioQ+hVFonWj
C3s/Oc34/bxs8vq2gi4qMemBRkJgrevEvHqHdFQpkYlud8kG4/IRQhYiD01J
JV/k6UGsu2pppOn5US3F3VdHDLb3SVYuPXBKKjgfJ1tTb+5VTY9pDc7Gig35
IoQUiaHhmvYh3w4+71H9IQurSZ0mgmtoJPy6DiFm3AqYrz3tcrydm5kNJUBJ
kg==
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SA1PR14MB5855.namprd14.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 807115fc-e34e-4cd5-b401-08dac4bbe8be
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2022 14:40:56.8618 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5c82d83a-818a-4c16-b540-ded2344a7ad3
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ZcdtztGLScHe4WGbnrMqK4xEVn1gSqGLFDunl7uUP7YtzDQ8/JTlQbbjKhl0YlsUVQbjkvxSa8t/PIjseVW9tg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR14MB4076
X-Proofpoint-ORIG-GUID: rubvVHW5BS21bsLh5b4SdXLXnDMZfO6_
X-Proofpoint-GUID: rubvVHW5BS21bsLh5b4SdXLXnDMZfO6_
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1
definitions=2022-11-12_09,2022-11-11_01,2022-06-22_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
lowpriorityscore=0 mlxscore=0
priorityscore=1501 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0
clxscore=1015 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0
classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000
definitions=main-2211120112
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: <SA1PR14MB5855BD2C125707400268EFD8B9039@SA1PR14MB5855.namprd14.prod.outlook.com>
X-Mailman-Original-References: <0eba3f9d-c89c-062e-425a-54aea7216b11@DancesWithMice.info>
<SA1PR14MB5855C0905E472007330A5886B9009@SA1PR14MB5855.namprd14.prod.outlook.com>
<mailman.914.1668166164.20444.python-list@python.org>
<parameter-20221111130028@ram.dialup.fu-berlin.de>
 by: Weatherby,Gerard - Sat, 12 Nov 2022 14:40 UTC

RUN is a global constant, and the method is documented, explaining why the parameter is there:

# Copy globals as function locals to make sure that they are available
# during Python shutdown when the Pool is destroyed.
def __del__(self, _warn=warnings.warn, RUN=RUN):

From: Python-list <python-list-bounces+gweatherby=uchc.edu@python.org> on behalf of Stefan Ram <ram@zedat.fu-berlin.de>
Date: Friday, November 11, 2022 at 2:42 PM
To: python-list@python.org <python-list@python.org>
Subject: Re: Argument name should be lowercase
*** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. ***

"Weatherby,Gerard" <gweatherby@uchc.edu> writes:
>I'd personally find it weird to see an all-cap parameter

In the source code of the standard library, all-caps
notation is used for a parameter name sometimes
if that parameter name is "URL" or sometimes
when it is being initialized from an all-caps name as in:

|def __del__(self, _warn=warnings.warn, RUN=RUN):
| if self._state == RUN:
....
from "pool.py".

("RUN=RUN" makes RUN have the value "RUN" had
at the time of the definition of the function.)

--
https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!kI1c1EIpXCtnz0SBHvQmJokWXPBo0rCY9MQ-IwXOZU4RyHqqKho9wMu6Ekj6GMXA0EbReT8_4GOxvoldiOsL3W8$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!kI1c1EIpXCtnz0SBHvQmJokWXPBo0rCY9MQ-IwXOZU4RyHqqKho9wMu6Ekj6GMXA0EbReT8_4GOxvoldiOsL3W8$>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor