Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python's dead batteries

6 views
Skip to first unread message

Retrograde

unread,
Dec 29, 2023, 10:58:07 PM12/29/23
to
From the «boo, posted this using perl» department:
Feed: SoylentNews
Title: What You Need To Know About Python's 'Dead Batteries'
Author: hubie
Date: Thu, 28 Dec 2023 10:01:00 -0500
Link: https://soylentnews.org/article.pl?sid=23/12/27/1534255&from=rss

Arthur T Knackerbracket has processed the following story[1]:

Python's been around in one form or another for over 30 years. Over that time,
it has accumulated a wide and powerful set of modules in its standard library.
These modules help developers get started with many common tasks. Fans of
Python[2] call this the "batteries included" part of the language.

But over the years, some of those batteries have died—meaning they've gone out
of maintenance, or been used for technologies that are now obsolete. Some of
these "dead batteries" were deprecated in Python 3.12[3], and will be removed
entirely in Python 3.13.

So, here's a rundown—in roughly descending order of importance—of the standard
library modules being removed in Python 3.13, including what each one does and
what new module (if any) has replaced it.

Here are the most important deprecated standard library modules. These are the
ones you are most likely still using in existing applications.

Listed as the most important modules being deprecated are cgi, cgitb, smtpd,
telnetlib, nntplib, msilib, and pipes. Other deprecated modules listed in the
article are: asynchat/asyncore, imghdr/sndhdr, uu, mailcap, crypt, nis, spwd,
xdrlib, chunk, sunau, and ossaudiodev. Click through to the fine article if you
want to see a brief description of each module and a suggested possible
replacement for it.

------------------------------------------------------------------------------

Original Submission[4]

Read more of this story[5] at SoylentNews.

Links:
[1]: https://www.infoworld.com/article/3711521/what-you-need-to-know-about-pythons-dead-batteries.html#tk.rss_all (link)
[2]: https://www.infoworld.com/article/3204016/what-is-python-powerful-intuitive-programming.html (link)
[3]: https://www.infoworld.com/article/3653636/python-removes-dead-batteries-from-standard-library.html (link)
[4]: https://soylentnews.org/submit.pl?op=viewsubsubid=61730 (link)
[5]: https://soylentnews.org/article.pl?sid=23/12/27/1534255&from=rss (link)

Theo

unread,
Dec 30, 2023, 6:59:00 AM12/30/23
to
Retrograde <fun...@amongus.com.invalid> wrote:
> Listed as the most important modules being deprecated are cgi, cgitb, smtpd,
> telnetlib, nntplib, msilib, and pipes. Other deprecated modules listed in the
> article are: asynchat/asyncore, imghdr/sndhdr, uu, mailcap, crypt, nis, spwd,
> xdrlib, chunk, sunau, and ossaudiodev. Click through to the fine article if you
> want to see a brief description of each module and a suggested possible
> replacement for it.

I wonder what Usenet tools losing nntplib will break?

Richard Kettlewell

unread,
Dec 30, 2023, 7:23:01 AM12/30/23
to
They can install it as a separate package, if they need it:
https://pypi.org/project/nntplib/

--
https://www.greenend.org.uk/rjk/

Retrograde

unread,
Dec 30, 2023, 6:20:44 PM12/30/23
to
On Sat, 30 Dec 2023 12:22:59 +0000
Richard Kettlewell <inv...@invalid.invalid> wrote:

> > I wonder what Usenet tools losing nntplib will break?
>
> They can install it as a separate package, if they need it:
> https://pypi.org/project/nntplib/

I've had to use an older distro still packaging python 2.7 to keep some
of my personal scripts running. Not an ideal solution, but it has worked.
0 new messages