Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.python / Re: learning python ...

SubjectAuthor
o Re: learning python ...Michael Torrie

1
Re: learning python ...

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

  copy mid

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

  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: learning python ...
Date: Mon, 24 May 2021 08:30:29 -0600
Lines: 16
Message-ID: <mailman.301.1621866633.3087.python-list@python.org>
References: <7dc017ca-c0a3-c66e-8b7c-ceea1c786c73@adminart.net>
<YKty/XyqeCBH9rcH@cskk.homeip.net>
<2ba5b89e-df8c-df0f-5a18-57852aa3a8bb@adminart.net>
<CAPTjJmok2XTPEkfREV=6mxTQqH=4LRqc+tYVL81FJJmXYgHmvQ@mail.gmail.com>
<9121937f-6364-a309-dbe7-3fd0ee117aa0@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de IVa9Bt20N3AhtjgLTi9uAwz0kDMusihx1BcYwsI3HjJw==
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=mlYVViWS;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.018
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'variable': 0.05;
'subject:python': 0.06; 'that?': 0.07; 'angelico': 0.09; 'no?':
0.09; '(unless': 0.16; '12:18': 0.16; 'overwrote': 0.16;
'something.': 0.16; 'though?': 0.16; 'variable,': 0.16; 'wrote:':
0.16; 'python': 0.16; 'tue,': 0.18; 'message-id:@gmail.com': 0.19;
'languages': 0.23; 'to:addr:python-list': 0.23; 'chris': 0.26;
'old': 0.28; 'header:User-Agent:1': 0.31; 'it,': 0.31; 'there':
0.31; 'am,': 0.31; "doesn't": 0.32; 'header:In-Reply-To:1': 0.33;
'same': 0.34; 'received:google.com': 0.34; 'missing': 0.35;
'one.': 0.35; 'from:addr:gmail.com': 0.35; 'possibly': 0.37;
'received:192.168': 0.37; "that's": 0.37; 'really': 0.37;
'received:209.85': 0.38; "it's": 0.38; 'received:209': 0.38;
'called': 0.40; 'reference': 0.61; '25,': 0.63; 'becomes': 0.65;
'forget': 0.68; 'latter': 0.69; '2021': 0.84; 'garbage': 0.84;
'received:209.85.216': 0.84; 'scope': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=subject:to:references:from:message-id:date:user-agent:mime-version
:in-reply-to:content-language:content-transfer-encoding;
bh=8DcVtzAGKI6YJmDkriaTDtsX5rcWIP0sdmnYz2jJMsk=;
b=mlYVViWS3w3Gn0p3UV8F4Ua4Td0eVgKI8akVok9SIh4HwPnnj31LwcgKVAl/nIYlIH
2S1GOued3aiIfjFoDaG9QfyQlceNVxYMNjpRy07sqqrZl8Ao/j2AUr+ZqeUHeolkIH9U
sL6sO9vnUWbpMDvHmfCxrQgcHdYeO0/yt2D02JY/PVe+zpTW+IoL5q/xYbr8vw1Zbb46
MLwBs5dSigrr7aKSIGks3Qn7ibjg0Mt+GuxYGSOjaFs1HS9HGdzncTMPEMF/WdQrN99r
axF4q6q+wZgX+muXboqbM9vuGiR/k0yOujed9+7vqXZBxK00kdbas8mAu+vBAFYYNQOQ
5KLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=8DcVtzAGKI6YJmDkriaTDtsX5rcWIP0sdmnYz2jJMsk=;
b=cUFovTe8D2zjfNuW3uGrsDy2fNH8MjYL/MUacmqqT/koHwmYaBJ1Jzn8V63E3ktRBZ
UIHFQZLe4AYQxZtYkt1+xGikeDDvRldZ03dwu6FFruNcS4x8iDi658Xu8/BbrMDzQEa3
K1DhO5d4qAYxxX2x6k3eisfTZFlZlYKilj2TM5NwN/NWMC0NfXGhxsJBhkKWZwAs6JoB
jjV2D/z27A0J6KTW9rNWz14qXZximBWhl4ZDKD14U7TkY3s1pczaLWK6yU6CHyaxEZis
BP+sawecKw4FD4kb9aGeLEKDTtlgWBikrmCSNEhYX02UsnngGUIlsISQ0G2R/r3QwJU/
hxxQ==
X-Gm-Message-State: AOAM532bW63rZEUqiuWxZ7UkYLBN4qfXtFWg1Ff7G37dqwEiqr2cscfD
iHr/IAfXDFTh+vx1//7VXxM0TdplxEs=
X-Google-Smtp-Source: ABdhPJxMkwBnl5W/ppBw3f3NKcCbD6uV3WKmGHoJFFN17Tunihorw8KOfNR7A7mXKdrwxucls5NCFQ==
X-Received: by 2002:a17:902:b185:b029:f4:58b2:aa4f with SMTP id
s5-20020a170902b185b02900f458b2aa4fmr26126908plr.40.1621866630702;
Mon, 24 May 2021 07:30:30 -0700 (PDT)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.7.0
In-Reply-To: <CAPTjJmok2XTPEkfREV=6mxTQqH=4LRqc+tYVL81FJJmXYgHmvQ@mail.gmail.com>
Content-Language: en-US
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
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: <9121937f-6364-a309-dbe7-3fd0ee117aa0@gmail.com>
X-Mailman-Original-References: <7dc017ca-c0a3-c66e-8b7c-ceea1c786c73@adminart.net>
<YKty/XyqeCBH9rcH@cskk.homeip.net>
<2ba5b89e-df8c-df0f-5a18-57852aa3a8bb@adminart.net>
<CAPTjJmok2XTPEkfREV=6mxTQqH=4LRqc+tYVL81FJJmXYgHmvQ@mail.gmail.com>
 by: Michael Torrie - Mon, 24 May 2021 14:30 UTC

On 5/24/21 8:24 AM, Chris Angelico wrote:
> On Tue, May 25, 2021 at 12:18 AM hw <hw@adminart.net> wrote:
>> There are more alternatives: Python might create a new variable with
>> the same name and forget about the old one. Or it doesn't forget about
>> the old one and the old one becomes inaccessible (unless you have a
>> reference to it, if there is such a thing in python). How do you call that?
>
> It's the latter option: create a new variable, and the old one becomes
> inaccessible. That's called "shadowing". It's how scoping works in
> most languages (called "lexical scope").

Is it really shadowing, though? The old one is not only inaccessible,
it's possibly reaped by the garbage collector, no? Both nums are in the
same scope so the one overwrote the other in the name table. Or am I
missing something.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor