Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

That does not compute.


devel / comp.lang.python / Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

SubjectAuthor
o Re: Variable scope inside and outside functions - global statement being overridThomas Passin

1
Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Variable scope inside and outside functions - global statement
being overridden by assignation unless preceded by reference
Date: Wed, 6 Mar 2024 08:16:01 -0500
Lines: 21
Message-ID: <mailman.43.1709734277.3452.python-list@python.org>
References: <aff560df-2f57-47d9-ad81-74c21960c21d@gmail.com>
<ZeeMgL/4hFh/XDJz@cskk.homeip.net> <4Tq9fJ0qN7znVFY@mail.python.org>
<d12bdeb5-8049-44b3-858e-e874cabbbc4e@yahoo.co.uk>
<b6f76638-ceef-4a87-b22e-3939671a4f70@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de QK0Yz3DpqMQUXLFdIOfgdA/9BAACM8/qCT26M6JSpuFQ==
Cancel-Lock: sha1:xeY+viwmWZAMr/XWSTWGXjxuuV8= sha256:vMeV/Mxbp0rVP69ZhqjMh36qFKXBa8+uqnpS35Mnn2A=
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=1E2Ghde5;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.021
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'knows': 0.04; 'searching':
0.05; '"python': 0.07; 'nasty': 0.09; 'though.': 0.09;
'aggregate': 0.16; 'gauld': 0.16; 'listings,': 0.16;
'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'subject:being': 0.16;
'subject:reference': 0.16; 'wikipedia': 0.16; 'wrote:': 0.16;
'python': 0.16; 'reached': 0.17; 'grant': 0.17; 'to:addr:python-
list': 0.20; 'focused': 0.22; 'anything': 0.25; 'tried': 0.26;
"isn't": 0.27; 'local': 0.27; 'fact': 0.28; 'header:User-Agent:1':
0.30; 'am,': 0.31; 'python-list': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; '100': 0.33;
'same': 0.34; "didn't": 0.34; 'header:In-Reply-To:1': 0.34;
'usual': 0.35; 'thanks': 0.38; 'use': 0.39; 'alan': 0.40;
'search': 0.61; 'python.org': 0.62; 'your': 0.64; 'well': 0.65;
'less': 0.65; 'listed': 0.67; 'header:Received:6': 0.67;
'received:64': 0.67; 'sites': 0.70; 'global': 0.73; "you'll":
0.73; 'manage': 0.73; 'bing': 0.84; 'bing,': 0.84; 'entry,': 0.84;
'subject: \n ': 0.84; 'google,': 0.93
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1709730962; a=rsa-sha256;
cv=none;
b=YXvwxWAXD0VGdhq6YafdHJLz+CeMhMxvyTR2hG8IaSg7ifUqdYau0h47A0OSS0P8dEt2tj
7qnhfVNAYzBQw+PK34jHnPZDPeK4+KcExWWQLTQfZ7vEsMdNiE/Gor/BqOzbKdJf/ZlIxn
GfvI5bE3biUzHCvBy9aVlDBk9MhnHGbIpgzaQh1ijQeNmVzr9hYBz8qTsPoQpkTxjEXNv4
77llzmMfICRU2GRc5iXZxIqNEs3ctcQ/IU2H07v4Kkknwk5A0lrcZ+/JJRj3F8Q4caAHEn
ZGV+hVjnmoOeze5f+EdxWci1gx0w03GPATWLeNWXL4kVG5Jhcn2ASW7/YB/l9g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1709730962;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=0DlV9NdXJSJmLkLHtI2WjVSQuIv2yIo9CfvLmYi5vTM=;
b=sXYCMPO+fUUSwNjwv7f6XhC7ZvZRriCP2jnBHUMR82jv9LpATJSLepfh5pihf4lcS4LAGb
ljB2lXm+ugqXPxGMO7dGVVNl7ovCND4o0ghaFmKQRhxis+LdcEJfx8JaTFwB3C113BSWn7
7GAMFH8PX8D4065TkEZUasucRLnEp3BXLzp+lGir7XypatzHXOffC9QiQfDsYjuvYLuS/9
cGI1naQRUCuAnkdHJECnh+F/JvZ4wjt8gtr4P5Qfx4fntDyu3kcij8626Awqt0miTnkyEt
22tKFZOGG0gURu9uTXjrpTh0selH4BOshh0/gEC+NxEWCynQTBtfHHNYYGJbkQ==
ARC-Authentication-Results: i=1; rspamd-55b4bfd7cb-bxwxw;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Stop-Wipe: 6b9741ea7d02437f_1709730962991_394287264
X-MC-Loop-Signature: 1709730962991:3571560872
X-MC-Ingress-Time: 1709730962991
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1709730962;
bh=0DlV9NdXJSJmLkLHtI2WjVSQuIv2yIo9CfvLmYi5vTM=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=1E2Ghde5jpFe2zPns79LeQn67DukHwFD/+mTcvWVdgBPq4RfUwEW0A38+QBaW57n8
7Fr6kIWjWWNHw9hyVRTBLQJKXPhopb9RTeXwW22MwUP2sVSrGaYx7l0xCInBGjY5SN
D8F5/84aZJX0BJeSOHgr+lVKEm4vPWNl3d5X6Tkm0qoT4OjwH1T0JqnwaSSaUprwSn
+dJmumBgZZzfKFEfJIDGIXL4NgjGKihpme4NOk+2SfZadyX7CX2ipQeaSsJscUen15
ACtATDoSwWzsusNAfHRGYjGjNnbDt3T8R3Y3XpbsgbdV3NeRT5CTzxo7icb5uosy/D
HtweDRxQovvhA==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <d12bdeb5-8049-44b3-858e-e874cabbbc4e@yahoo.co.uk>
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: <b6f76638-ceef-4a87-b22e-3939671a4f70@tompassin.net>
X-Mailman-Original-References: <aff560df-2f57-47d9-ad81-74c21960c21d@gmail.com>
<ZeeMgL/4hFh/XDJz@cskk.homeip.net> <4Tq9fJ0qN7znVFY@mail.python.org>
<d12bdeb5-8049-44b3-858e-e874cabbbc4e@yahoo.co.uk>
 by: Thomas Passin - Wed, 6 Mar 2024 13:16 UTC

On 3/6/2024 5:59 AM, Alan Gauld via Python-list wrote:
> On 05/03/2024 22:46, Grant Edwards via Python-list wrote:
>> Unfortunately (presumably thanks to SEO) the enshittification of
>> Google has reached the point where searching for info on things like
>> Python name scope, the first page of links are to worthless sites like
>> geeksforgeeks.
> And not just Google, I just tried bing, yahoo and duckduckgo
> and they are all the same. Not a one listed anything from
> python.org on the first page... In fact it didn't even appear
> in the first 100 listings, although wikipedia did manage an
> entry, eventually.

I don't know ... I just searched for "python local vs global variables"
and a python.org page on it was the second hit. I usually use StartPage
- who knows where they aggregate from - but the same search on Google
and Bing also popped up the python.org link as the second hit. As usual
Bing was a nasty experience, though.

Still, if your search phrase isn't as well focused as that or you are
less lucky, for sure you'll get all sorts of junk.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor