Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Those who can't write, write manuals.


devel / comp.lang.python / Re: Strange Change Of Module Name

SubjectAuthor
* Strange Change Of Module NameBetty Hollinshead
`- Re: Strange Change Of Module NameChris Angelico

1
Strange Change Of Module Name

<6e1aba78-9d32-4991-a2da-87bf78c1a34an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:622a:11d6:: with SMTP id n22mr64999650qtk.337.1636142888544;
Fri, 05 Nov 2021 13:08:08 -0700 (PDT)
X-Received: by 2002:a37:a6d7:: with SMTP id p206mr16543161qke.261.1636142888353;
Fri, 05 Nov 2021 13:08:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Fri, 5 Nov 2021 13:08:08 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c4:b89:9601:6a8b:cb98:b67:8172;
posting-account=furZ2AoAAAD9nw5VbSX6JL7xk4NGWuwe
NNTP-Posting-Host: 2a00:23c4:b89:9601:6a8b:cb98:b67:8172
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6e1aba78-9d32-4991-a2da-87bf78c1a34an@googlegroups.com>
Subject: Strange Change Of Module Name
From: lizzyhol...@gmail.com (Betty Hollinshead)
Injection-Date: Fri, 05 Nov 2021 20:08:08 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: Betty Hollinshead - Fri, 5 Nov 2021 20:08 UTC

python3-3.10.0-1.fc35.x86_64
alacarte-3.36.0-6.fc35.noarch

Someone in the Python world changed the name of an import.
Once upon a time the import (in alacarte) it looked like this:
from collections import Sequence

In a standard Fedora 35 install a few days ago, alacarte crashes.
.....because the import (now) needs to look like this:
from collections.abc import Sequence

Am I alone in wondering about this sort of stupid change of name?

L.

Re: Strange Change Of Module Name

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

  copy mid

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

  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: Strange Change Of Module Name
Date: Sat, 6 Nov 2021 08:52:55 +1100
Lines: 38
Message-ID: <mailman.182.1636149188.23718.python-list@python.org>
References: <6e1aba78-9d32-4991-a2da-87bf78c1a34an@googlegroups.com>
<CAPTjJmrhqMBmC5i3p1cXF_YkQEDDvbj-hkegHJLsDmvwcpX78g@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de FCxSaHmffbznVg1IYm5onAjSeMdCeTaelzY1WFGs/wHA==
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=DXthn7l7;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.030
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'this:': 0.03; '3.2': 0.09;
'fedora': 0.09; "hasn't": 0.09; 'import': 0.15; 'alias': 0.16;
'all:': 0.16; 'backward': 0.16; 'chrisa': 0.16; 'devs': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'removed.': 0.16; 'subject:Module': 0.16; 'wrote:': 0.16;
'python': 0.16; 'pull': 0.17; 'to:addr:python-list': 0.20; 'sat,':
0.22; 'install': 0.23; 'actual': 0.25; "wasn't": 0.26; "isn't":
0.27; 'requests': 0.28; 'looked': 0.31; 'wondering': 0.31;
'to:name:python': 0.32; 'message-id:@mail.gmail.com': 0.32; 'but':
0.32; 'use,': 0.33; 'someone': 0.34; 'skip:" 20': 0.34; 'header
:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'change': 0.36; 'received:209.85':
0.37; 'way': 0.38; 'received:209': 0.39; 'least': 0.39; 'sending':
0.39; 'valid': 0.39; 'should': 0.40; 'kept': 0.61; 'days': 0.62;
'great': 0.63; 'once': 0.63; 'upon': 0.64; 'look': 0.65; 'fixing':
0.69; 'sequence': 0.69; '2021': 0.71; 'longer': 0.71; 'bothered':
0.84; 'stupid': 0.84; 'subject:Name': 0.84; 'warning': 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=rSCrDZGOG1x9rgktupiuLE3H8ONCCO4j9DCOO2Yxns4=;
b=DXthn7l7XCjln5IhprNiPBz+wVvam45gAmipa0DkVA77XVIHnA0ZDaFILm6I1o63KM
LKw34Gv01eyGh1dmUe5HnsDEb9r55vrywVlya4W4IVoJSWzL+CBKRHcWCGPjxV8CX1Ei
U3R5qHTCFZSxDVg+UNistKsDesDt68dSZl+QvTiAV182En6AISlH10IF/V3Zn9Dc3UCG
QzppbsmnSDFPTISXs0yWgliko+eJpJvjRq7aOWFrAedK0D4oktL7fgxdkOYWRKYOtpMw
6OKLKpa9lFSwHki8/NepRlU/Yw/bIRt68ELSgC8OW7V+qnWynLZbOLa5vc+kmW6TAMJA
cHKQ==
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=rSCrDZGOG1x9rgktupiuLE3H8ONCCO4j9DCOO2Yxns4=;
b=uhK9t3azCVI82AJ5eSlwdZbwOWZs4PgE0d3ijYtRFlC1m7sPVpGmM2fhLCpFceLHn1
XDYS+KGXpgus5jEjG65+EG6bPeStfWkDl6mOsLjnOqNg7AnFA8VMzmX+bSgXoAlMJMlh
9pCVo3aDu6heLl3hzjv12itfKI0S87DmfICCcPb6usP7xbGp+oac94v/vfBCiG91kaW9
svUuWXa7+bisT7+JV830x3eborpo6BrXSDD3fnh3noLvvg9F2ShF1nN7Il/uZ8W26tjq
5kftpwaI2U/pC/wjoTSDuis3RWrBFhBWfHf2qoWRe18x5cOJwmyCvg0Z6H+zSQBdqyBt
kzpA==
X-Gm-Message-State: AOAM5305uUVTtmnLe85fbF4quB0AgBxhGRIVll+ixdlQ9b+BR5EuW7FJ
+F2WKSpynMfGnQXJ6IiG0bqiOs45eN2Un9LnazRcf4lHy00=
X-Google-Smtp-Source: ABdhPJwJjovvDpgk7kD9sNPnuvZq8KnIu9UFR+RgsaGA9u4JjxVTxzXXzPpjpYyjYpMKtia3jEO58wzX8A5Uae/aTuc=
X-Received: by 2002:a1c:ac86:: with SMTP id v128mr33525773wme.3.1636149186665;
Fri, 05 Nov 2021 14:53:06 -0700 (PDT)
In-Reply-To: <6e1aba78-9d32-4991-a2da-87bf78c1a34an@googlegroups.com>
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: <CAPTjJmrhqMBmC5i3p1cXF_YkQEDDvbj-hkegHJLsDmvwcpX78g@mail.gmail.com>
X-Mailman-Original-References: <6e1aba78-9d32-4991-a2da-87bf78c1a34an@googlegroups.com>
 by: Chris Angelico - Fri, 5 Nov 2021 21:52 UTC

On Sat, Nov 6, 2021 at 8:42 AM Betty Hollinshead
<lizzyhollins99@gmail.com> wrote:
>
> python3-3.10.0-1.fc35.x86_64
> alacarte-3.36.0-6.fc35.noarch
>
> Someone in the Python world changed the name of an import.
> Once upon a time the import (in alacarte) it looked like this:
> from collections import Sequence
>
> In a standard Fedora 35 install a few days ago, alacarte crashes.
> ....because the import (now) needs to look like this:
> from collections.abc import Sequence
>
> Am I alone in wondering about this sort of stupid change of name?
>

Calling it "stupid" isn't a great way to get a useful discussion.

I would say that alacarte has been buggy for the better part of a
decade, and you're only now getting an actual error. Here's the change
- it wasn't a rename at all:

https://docs.python.org/3/whatsnew/3.9.html#you-should-check-for-deprecationwarning-in-your-code

The "collections.Sequence" alias has been kept for backward
compatibility, but as of 3.10, has been removed. The correct spelling,
"collections.abc.Sequence", has been valid since at least 2012 (that's
when it started emitting a warning - don't know if it was available
longer and I don't have a Python 3.2 to test). So either alacarte
hasn't been updated in many many years, or nobody has bothered to
check the warnings.

Maybe, rather than calling the Python devs "stupid", you should
consider sending pull requests to projects you use, fixing things that
are raising warnings?

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor