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 fixed.


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

SubjectAuthor
o Re: learning python ...Chris Angelico

1
Re: learning python ...

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

  copy mid

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

  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: learning python ...
Date: Tue, 25 May 2021 00:24:25 +1000
Lines: 11
Message-ID: <mailman.299.1621866279.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>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de mglu2wLF8VgsV2YmITnGyAFdMxcqtnriLGKlSPTQ0miQ==
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=Mo5kcX8d;
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; '(unless': 0.16; '12:18':
0.16; 'chrisa': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'variable,': 0.16; 'wrote:': 0.16; 'python':
0.16; 'tue,': 0.18; 'languages': 0.23; 'to:addr:python-list':
0.23; 'old': 0.28; 'it,': 0.31; 'there': 0.31; "doesn't": 0.32;
'to:name:python': 0.32; 'message-id:@mail.gmail.com': 0.33;
'received:209.85.166': 0.33; 'header:In-Reply-To:1': 0.33; 'same':
0.34; 'received:google.com': 0.34; 'one.': 0.35;
'from:addr:gmail.com': 0.35; "that's": 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
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=x0/t400IkKZHsuRVRGX9TwH7Twgii/6bBLekeW7BRoo=;
b=Mo5kcX8dDPU1jOX9XGlMKBirMVFaw1JdozEXUW07kSvOR6HNu0PQ12tYyp1tsPJbvF
GVjKYMhq3rztWU/yGeUtK39ko9oPJypLTl99qHULzA7+3QbQeNxMfyu+JTjCKhjJAFYL
ysvmtryIvxKMnryrzrUfDFif/ams2aLhF3UmwKOlBq/hz7udOxyXkA2Uh2Ck5P+3CpPG
sOkIsbENmpDlMRlcLB8uPJuTLpeXVPTXxiZuDeSuuiFP/qr0TkLV2g574s/4qIZWvV8Q
qIaam4/uTd8hl8a59Zybwje869GzlqPnNDQv8PvjNl/Pxo1f8fu7VKDRwvPd8kS+aOkS
d3YQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=x0/t400IkKZHsuRVRGX9TwH7Twgii/6bBLekeW7BRoo=;
b=a7ojNTba0Tn6lTO0IHwKjfDbu2xZUWJnfvempgq/0xWQD4zHv+0H9DKv4+2BqijDb/
w5SWAgA/if1GabXWICNeMWmDJFi/nchtSP+6R1zdIEFwVTIX2ADNI285AG/1XvKw2Jfh
JxTklPvrCVJP3xt8CC07+P7/DLCUX+DywXNtB6OKWajAt61N095qezrExiDZmno7j+/y
WkJmbxL7g2Ka+85uH5sK+V2QXEay5VJr7xy5odFXyiCkifCopBg4PIxFFRS5xOA08U9Z
tHeM+clrwe2I1P9LQIVyGLPPfwKkdHkRHv4XdFv3d749s6RG/iYFm/FHGuOoiG+kE5e2
F6fg==
X-Gm-Message-State: AOAM532HlEU8bxhDXCBJy+Zguj2kNAGfenF+6vDnzvHMfrM6m5dpMIRZ
66S8Ck9zjHNm0qkHwE37exJQCUl76Xh0H71UD0a/TOai5u0=
X-Google-Smtp-Source: ABdhPJwYdJ9A5rt1pizIGQLeO79BHr9FF0YiVWMk+R1AA5e00rMP2uz2/52c03/pxLAIsuxK/D6mgdvDfGYcBWJUigs=
X-Received: by 2002:a92:c607:: with SMTP id p7mr16662814ilm.97.1621866276004;
Mon, 24 May 2021 07:24:36 -0700 (PDT)
In-Reply-To: <2ba5b89e-df8c-df0f-5a18-57852aa3a8bb@adminart.net>
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: <CAPTjJmok2XTPEkfREV=6mxTQqH=4LRqc+tYVL81FJJmXYgHmvQ@mail.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>
 by: Chris Angelico - Mon, 24 May 2021 14:24 UTC

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").

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor