• Python's dead batteries

    From Retrograde@21:1/5 to All on Sat Dec 30 03:58:04 2023
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Theo@21:1/5 to Retrograde on Sat Dec 30 11:58:56 2023
    Retrograde <fungus@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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Theo on Sat Dec 30 12:22:59 2023
    Theo <theom+news@chiark.greenend.org.uk> writes:
    Retrograde <fungus@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?

    They can install it as a separate package, if they need it: https://pypi.org/project/nntplib/

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Ram@21:1/5 to Theo on Sat Dec 30 14:37:43 2023
    Theo <theom+news@chiark.greenend.org.uk> writes:
    I wonder what Usenet tools losing nntplib will break?

    Usenet tools can still use older Python versions with nntplib or
    fork from a version of nntplib. Maybe someone will continue to
    maintain nntplib outside of the standard library.

    I write code to access Usenet from Python for my own uses and have
    never used nntplib, I access sockets directly. But, admittedly, my
    code is not general or robust, but it works for the purpose intended.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Retrograde@21:1/5 to Richard Kettlewell on Sat Dec 30 18:20:40 2023
    On Sat, 30 Dec 2023 12:22:59 +0000
    Richard Kettlewell <invalid@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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)