Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

One does not thank logic. -- Sarek, "Journey to Babel", stardate 3842.4


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

SubjectAuthor
o Re: New assignmens ...Antoon Pardon

1
Re: New assignmens ...

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: antoon.p...@vub.be (Antoon Pardon)
Newsgroups: comp.lang.python
Subject: Re: New assignmens ...
Date: Wed, 27 Oct 2021 10:45:08 +0200
Lines: 52
Message-ID: <mailman.68.1635324312.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>
<7fe4dae1-0144-8e99-cc32-17d733961df1@vub.be>
<CAPTjJmoSaY=qA1O7ZK2zDDLUyAQhk2N-CaOqhH-mn0p8oEEB0A@mail.gmail.com>
<19860f15-c931-27b5-3ae5-7e935fa9e7cb@vub.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 8koPGsNLTq9CeFH1qEbZhwkd/F31QI44PsXIRnoLSPYg==
Return-Path: <antoon.pardon@vub.be>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=vub.be header.i=@vub.be header.b=DyvOerNh; dkim-adsp=pass;
dkim-atps=neutral
X-Spam-Status: OK 0.018
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'loop': 0.07; 'programmer':
0.07; '27,': 0.09; 'etc).': 0.09; 'included,': 0.09; 'infinite':
0.09; 'python-ideas': 0.09; 'problem.': 0.15; 'syntax': 0.15;
'6:00': 0.16; 'antoon': 0.16; 'break,': 0.16; 'clean,': 0.16;
'from:addr:antoon.pardon': 0.16; 'from:addr:vub.be': 0.16;
'from:name:antoon pardon': 0.16; 'message-id:@vub.be': 0.16;
'pardon': 0.16; 'pattern:': 0.16; 'schreef': 0.16; 'tuple': 0.16;
'wrote:': 0.16; 'problem': 0.16; 'python': 0.16; 'to:addr:python-
list': 0.20; 'maybe': 0.22; 'idea': 0.24; 'examples': 0.25;
'again,': 0.26; "isn't": 0.27; '>>>': 0.28; 'chris': 0.28; 'header
:User-Agent:1': 0.30; 'program': 0.31; 'think': 0.32; 'end.':
0.32; 'half': 0.32; "wouldn't": 0.32; 'but': 0.32; "i'm": 0.33;
"i'll": 0.33; 'there': 0.33; 'same': 0.34; 'header:In-Reply-To:1':
0.34; 'one.': 0.35; 'following': 0.35; 'count': 0.36; 'target':
0.36; "it's": 0.37; 'way': 0.38; 'could': 0.38; 'use': 0.39;
'decide': 0.39; 'wed,': 0.39; 'still': 0.40; 'something': 0.40;
'want': 0.40; 'should': 0.40; "there's": 0.61; 'great': 0.63;
'skip:m 20': 0.63; 'check.': 0.64; 'overall': 0.64; 'look': 0.65;
'less': 0.65; 'per': 0.68; 'right': 0.68; 'strong': 0.69; '2021':
0.71; 'little': 0.73; 'costs': 0.74; 'extra': 0.84; 'eventually':
0.84; 'means,': 0.84; 'received:eurprd01.prod.exchangelabs.com':
0.84; 'incremental': 0.91; 'occasion': 0.91
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=K/j4R+7SNufyUagxFdfDjNLUZQm8nGnByjZuistRyajv//5JHtS2yibaQIrzMEi/k8/mPTG4qxVYjEv77FjiwC92IuDEgr4dtAt7DpiYxavVoPK+wJMUcuZraINFXEL33cO8ZSsznxRniEiOsi5M/pwjsRX7mzx01HQWcUXZIpxtPqWxQrL1WBP6UeGUMw0gF5TG2/au2Hh+kpLy+AeMK2VVFVv/NlFbWuzPlUYhjZj5KJzN99E19YSTSpkQSvCeKvDiUdMtyUDeUBfKEp/LuTFph/6hUytfsw5YWQusWhE8dQyMXjjwwUswenwJrdMaqVIocqVeIgADytqwwCBRFQ==
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=d8U2H1d6X0NTkt+UzRZrSbS4kIocLQ76s0RSvNF/FFs=;
b=P2rRAx/elGUimFsvoaOkzM7r8rYVvYr69iIiBIuY/0wUUqurEiDsWObdZ/x1jdR4N99wJIoiq4QBhQjHpEOLYkPExCeMZLUDPM/R/5ZdtefKQEsclqfMU9018LXUL26iL8tBroOHVI0eOFwMFx6qZpvcEq7yNwBXb8JYhoJcJ2wxlH4xoxjhtA3BO0dZhnD3sdVNO4HmYNGCC+BU7VXEwejpzbPyHO11tixCLQ5VMxl/PaaAJ2i/SnKN51A779ZT2uZ8aLsWNzptUeKWe6ikDSyBHKpytYs5urC3V4sExclmTvupqbg/EOgH5ORqO/qQ7ga6Jlb/ikcEntxVXIzMQQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=vub.be; dmarc=pass action=none header.from=vub.be; dkim=pass
header.d=vub.be; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vub.be; s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=d8U2H1d6X0NTkt+UzRZrSbS4kIocLQ76s0RSvNF/FFs=;
b=DyvOerNhB5dw90JwLK6Dk5u9Lbm5/RVp/11spBSfwzMksvwUGzkEGV5LGuSOtKTVHaL+g1+IDxv9S1+55RHQFZWyLENro9V5gRqErSF1Odsw3OvCqk/9vS8QsBQrOZHoTT66/QiWEA5JFBfkvvqf4Azi2RKB5Rg5t1whwZbSmQM=
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=vub.be;
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <CAPTjJmoSaY=qA1O7ZK2zDDLUyAQhk2N-CaOqhH-mn0p8oEEB0A@mail.gmail.com>
Content-Language: nl-BE
X-ClientProxiedBy: AM0PR06CA0080.eurprd06.prod.outlook.com
(2603:10a6:208:fa::21) To VI1PR01MB4158.eurprd01.prod.exchangelabs.com
(2603:10a6:803:6d::26)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 6396d123-89db-4c25-eae9-08d99926150f
X-MS-TrafficTypeDiagnostic: VI1PR01MB4992:
X-Microsoft-Antispam-PRVS: <VI1PR01MB499241AE80CE3683DAAC60328F859@VI1PR01MB4992.eurprd01.prod.exchangelabs.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: wICsEH/jYPzGWF56SNU9GtjUf7eHNCBDxG2o89dOIcMabbqIdXLKgOWU02zUx9+klInl78gl/0xcJQmV5jIAnmBx41/f1puzHe4o+evYBmvTizuY6qtcGZQT+Ryil4r/hSN7naVkoXHsYGxGYKxIIBsGWpJg3/nTk8jQsPPN237/xFmneOSmGQZQOtEZrQacwylwdHYcQtifDQsGV8SRgz1VDM4HpTADMSh+YeqIsK4fXqHJsmw+M93aNwFQgxMTpaITPxVAHjz+3wEAAcElRpDcvIz+5IibCsJSWZUKbmQSkV1smN2jeHLgnnWADIpSs9+7OaV8AZ0HrkSVNv2uEP5Hg92aMp88Ry6dRLAGgPXubKB9mbg8Hg2k2XcAbAU70gimG1lJ9ipO4flY8rvBsTVyg8UMM4Z64wz1vF6dqBAH1g/ezgoaeG34R/ZshZy7rMq3v6WUkgurHI4pA3mIgstQU2xqEWp7Gwjo7Zk64xrJl41cCmca2Ogz0hIs2rTuOvGQIN6EkG1e/LYNL8akHAxS0po6q1O/f3cikpai8imfwYiXQ+52h4KYuL+hAd0X/6y1Rbylll36+DvkxtphD+0pmGJFz0vOtaw/nws7o+IYXoX/NK5piANWeCDzlkpCutS2OffRZYMSg7bnTM1m1f1x2kJk3C8I1fr23mteO9pVODDZq4tlPfOiAx+M/fyvjTqViyNng7rPlEBiorPXP9+dszuk3yijBAgNFk0Vb/U=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:VI1PR01MB4158.eurprd01.prod.exchangelabs.com; PTR:;
CAT:NONE;
SFS:(4636009)(366004)(36756003)(7116003)(33964004)(52116002)(53546011)(2906002)(83380400001)(2616005)(86362001)(44832011)(31696002)(66476007)(6916009)(186003)(66946007)(31686004)(66556008)(3480700007)(316002)(8936002)(786003)(38100700002)(6486002)(5660300002)(8676002)(508600001)(45980500001)(43740500002);
DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: tmvMr6rmR5/hy5it3TGranpHxklIN0T1YEU5WWMdTJFro
ssaDi7u7AOUijo0TnruNec8MoFcnQmE9L+TyouuUUlE97
9wGMu437yXFmicrVT5XB6vTCVI9XbU6Q+4L8PM51REB0A
Thkqr3ZH9Np032GZWbYIeQN1YvyEii0zlsoPB9MH9dJnT
19qGSMHcw/JSrUvBHhVex1Cn36lP6MiPoFMAerkjgKN3C
kJEt3o6wrC7+b9PZSokxcfBR1V5LpkncmWz35ZNRjQA9x
CzNbu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bCOxQh2gmIp6CR8V
d0jHC+cnh1Jxz/JoRNiQ/v80PH5AJ9/jGbulLh+RAv6yh
la+/uObCitEjaiRm9xOjMq0l74xzU8/r1x/dnd9Ii7cbV
yrnXcMUepsidL3UJQSKs1EqoQlkO52ylhkIVgLk34FrLH
vz/UapeTWJ4GbPvPz3bK0sH3/9mBrC8uRBwu9WoQtgkwY
fAPAvsa/lz6puZl0z2MrrW/xuVgKLnmvkzunWkahYm7XH
qEo6KbVbDtp3oOJ9ikcp5wUleThPTcZJJgN6jTuw3Lk1+
kFVNCIOa1HB8JUfkL8wuDZEHO2DTyGg8CAuI1+peEq/pL
N6zHcbScjUw8CRA5W0hjMQTCf8RYKShIYiqDe+adFQ=
X-OriginatorOrg: vub.be
X-MS-Exchange-CrossTenant-Network-Message-Id: 6396d123-89db-4c25-eae9-08d99926150f
X-MS-Exchange-CrossTenant-AuthSource: VI1PR01MB4158.eurprd01.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2021 08:45:09.2106 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 695b7ca8-2da8-4545-a2da-42d03784e585
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: DPDzEiFUUV/0jxiY3c+mmviWCN7/WyuoQVajPeE8PEDjy8NDXoT18aHOwR/EvJ4orNlfznBxBhDQXG1++b9YWw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB4992
X-Content-Filtered-By: Mailman/MimeDel 2.1.35
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: <19860f15-c931-27b5-3ae5-7e935fa9e7cb@vub.be>
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>
<CAPTjJmr-_jPLRwATvMY+8SeHOwP=EfAcjKqZ96+ezGJk_cDOog@mail.gmail.com>
<7fe4dae1-0144-8e99-cc32-17d733961df1@vub.be>
<CAPTjJmoSaY=qA1O7ZK2zDDLUyAQhk2N-CaOqhH-mn0p8oEEB0A@mail.gmail.com>
 by: Antoon Pardon - Wed, 27 Oct 2021 08:45 UTC

Op 27/10/2021 om 10:05 schreef Chris Angelico:
> On Wed, Oct 27, 2021 at 6:00 PM Antoon Pardon <antoon.pardon@vub.be> wrote:
>>
>>
>> Op 26/10/2021 om 00:24 schreef Chris Angelico:
>>> 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.
>> I think you should seperate the costs from the benefits. It is not because
>> the costs can be high there is little value.
>>
>> And how do you count use cases? What about the following pattern:
>>
>> while (a, b) := next_couple(a,b)[-1]:
>> ...
>>
>> Is that one use case or is that a use case for each kind of couple?
>>
>> And even if the benefits are little per case, they can add up with every
>> occasion such a case pops up.
>>
> I'm not sure that it's much of a use-case; isn't it an infinite loop as written?
>
> And that's the problem. With multiple-assignment, the overall value is
> going to be the tuple, so you then have to add extra parentheses and
> subscripting to get what you want to check. That makes it far less
> clean, far less tempting, far less valuable. You have to parenthesize
> the assignment target (otherwise it'll build a tuple out of one value
> and the assigned target), then parenthesize again, and subscript at
> the end.

That is only a problem if you want to consider it one. This wouldn't be the
only place in python where you have to be careful with parentheses. IMO it
should be the responsibility of each programmer to decide which way to
program will be most clean. Maybe you are completly right and at the
same time it could still be more clean than the other possibilitie python
allows.

> So if you want this added, show a use-case that makes it look way
> better than the alternatives (including a generator, a mid-loop break,
> etc).

Way better according to which criteria? IMO to realy make something like
this you would need a one and a half loop. But although at some time there
was a strong indication it would get included, the idea was eventually discarted.

So I'll argue for incremental better if I see a possibility. A few incremental
betters can eventually result in something that is way better than the original.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor