Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Perl programming is an *empirical* science! -- Larry Wall in <10226@jpl-devvax.JPL.NASA.GOV>


devel / comp.lang.python / Re: New assignmens ...

SubjectAuthor
o Re: New assignmens ...Chris Angelico

1
Re: New assignmens ...

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

  copy mid

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

  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: New assignmens ...
Date: Tue, 26 Oct 2021 09:24:45 +1100
Lines: 22
Message-ID: <mailman.45.1635200698.23718.python-list@python.org>
References: <MN2PR02MB68461EB83EC01991C31D6752A8839@MN2PR02MB6846.namprd02.prod.outlook.com>
<00a701d7c9e9$0d745650$285d02f0$@verizon.net>
<CAPTjJmpfVz_TjRnpOhmO33eqYqxXitO0FGqnoHr=RvPHV+jm2Q@mail.gmail.com>
<f83e5665-5262-28d2-efc9-6c704e1e1f35@DancesWithMice.info>
<CAPTjJmr-_jPLRwATvMY+8SeHOwP=EfAcjKqZ96+ezGJk_cDOog@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de K/4K0j1WMGBFk1VAgv+WtA/5p2OmObI7+RSliIcKKipw==
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=YL2wZeKQ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'usage': 0.05; '26,': 0.07;
'real-world': 0.07; 'later,': 0.09; 'python-ideas': 0.09;
'threads': 0.09; 'syntax': 0.15; 'aside': 0.16; 'chrisa': 0.16;
'examples,': 0.16; 'expressions': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'received:209.85.221.47': 0.16;
'received:mail-wr1-f47.google.com': 0.16; 'syntax.': 0.16;
'wrote:': 0.16; "can't": 0.17; 'tue,': 0.19; 'to:addr:python-
list': 0.20; 'option': 0.20; 'examples': 0.25; 'opening': 0.26;
'think': 0.32; 'python-list': 0.32; 'to:name:python': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'there': 0.33;
'particular': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'one.': 0.35; 'from:addr:gmail.com':
0.35; 'also,': 0.36; 'received:209.85': 0.37; 'way': 0.38;
'received:209': 0.39; 'quite': 0.39; 'use': 0.39; 'skip:o 10':
0.61; "there's": 0.61; 'great': 0.63; 'skip:m 20': 0.63; 'back':
0.67; 'order': 0.69; '2021': 0.71; 'benefit.': 0.84; 'means,':
0.84; 'regret': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=ydYpLKYxQZly5+ggp8w9eWrNaV3ElqPxNvi66ZuDhqM=;
b=YL2wZeKQ92H7fGFWAZ/RuODkOnfeoe/mIScz8Xv2RCEyZuzOzb5kL35PRqHeERDkdW
CR2+VpQ7d4ongT9T7wnIZ59h1I1A0hbBIghO1jwgJQ+mIZGVN21z8d1ondnyQ0ygmdYm
hoWi1oQUZAwhljhjUYB21ecNPBvMtEl6iVNcGqqFKcWU64uJFNSUJrLYW6rfkMKJcGZo
vYmtx5r60cFj9CyF+h9WojqmJPuDLn543PPg19D0c8K1wdbICAzhCf4XI86S7PhwesR0
ENvIj3ebNhFeIzDzVyzVOKsp3fm8Zuy5WMlCAIIqkhL6rmOKrBuyut2w/rUx7OBf6sqD
Z5kA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=ydYpLKYxQZly5+ggp8w9eWrNaV3ElqPxNvi66ZuDhqM=;
b=mo2T5OixRdM3rmg5+S02osT/lfkgOpFc+SRcgwfgMCoCmClxwhbDBKZDWzMRt+sb0L
vY8uBjDpfXz8ESVFeHjme68Cg935j8/wcw929S2C7USTXFsTChIl00kEYuiax/L2yTSs
bEq2chfyIHE4KUI4TUaG1Rw1og912uR44QmrlxouEYM4iEXZ83/E6R6UMDUWjK4nQ57c
kmZBJj2NotW5fCrekTGfwFn3+99xtyJjh1dVlshX+StzmbwBW6MYJn9uKxr97K8ezspw
70ZF9ews2OSIkLMJ12nv8a6kyJP7ThZwH+AA6WXP3mIjSNlp5+GKBw5cnNstfTyJEJtw
5Jbw==
X-Gm-Message-State: AOAM532TLXo5lDfaZI766AfbxCzIsTCv/T1X+pQktV9ejFLAVWisIzXP
fcjeRSpCyP+CLgVB33h7qwWM6RlY9ui+6gzDJmXBHt9U
X-Google-Smtp-Source: ABdhPJw91BCBQbUhqfdaVOI+aY5FqPgcBeliJY/ulEr0seyg3GqoGhiv8KWt1ZPERNU6I1ULlA+mGGJk7LhNK3XpCuk=
X-Received: by 2002:a05:6000:1449:: with SMTP id
v9mr27237382wrx.137.1635200696315;
Mon, 25 Oct 2021 15:24:56 -0700 (PDT)
In-Reply-To: <f83e5665-5262-28d2-efc9-6c704e1e1f35@DancesWithMice.info>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.35
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: <CAPTjJmr-_jPLRwATvMY+8SeHOwP=EfAcjKqZ96+ezGJk_cDOog@mail.gmail.com>
X-Mailman-Original-References: <MN2PR02MB68461EB83EC01991C31D6752A8839@MN2PR02MB6846.namprd02.prod.outlook.com>
<00a701d7c9e9$0d745650$285d02f0$@verizon.net>
<CAPTjJmpfVz_TjRnpOhmO33eqYqxXitO0FGqnoHr=RvPHV+jm2Q@mail.gmail.com>
<f83e5665-5262-28d2-efc9-6c704e1e1f35@DancesWithMice.info>
 by: Chris Angelico - Mon, 25 Oct 2021 22:24 UTC

On Tue, Oct 26, 2021 at 9:19 AM dn via Python-list
<python-list@python.org> wrote:
> Back on-topic, I am slightly curious:-
>
> aside from 'starting small' with an option to widen/'open-up' later, is
> there a particular reason why 'the walrus' has not been made available
> (could not be ...?) for use with object-attributes?

I can't think of any other reasons. But the one you cite is quite an
important one. In order to get real-world usage examples, the feature
was rolled out in the restricted form, because threads like this are
*exactly* how the value can be judged. So I do not in any way regret
that assignment expressions were accepted in their current form, but
also, don't be afraid to propose an opening up of the syntax. Be
specific, and cite usage examples that would benefit.

TBH, I don't think there's a lot of value in multiple-assignment,
since it has a number of annoying conflicts of syntax and few viable
use-cases. But if you have great examples of "x.y :=" or "x[y] :=",
then by all means, post on python-ideas to propose widening the scope.

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor