I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
What should I use in place of nntplib?
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for
removal in Python 3.13
What should I use in place of nntplib?
I'd recommend creating a PyPI project with the existing 3.12 code,
then using that from 3.13 onward.
On 15/05/2023 22:11, Grant Edwards wrote:
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
What should I use in place of nntplib?
I'm curious as to why nntplib is deprecated? Surely there are still a
lot of nntp servers around, both inside and outside corporate firewalls?
Is there a problem with the module or is it just perceived as no longer >required?
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
What should I use in place of nntplib?
On 15/05/2023 22:11, Grant Edwards wrote:
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
What should I use in place of nntplib?
I'm curious as to why nntplib is deprecated? Surely there are still a
lot of nntp servers around
I'm curious as to why nntplib is deprecated? Surely there are still a
lot of nntp servers around, both inside and outside corporate firewalls?
Is there a problem with the module or is it just perceived as no longer
required?
See PEP 594: https://peps.python.org/pep-0594/
Tuesday, May 16, 2023 at 9:26, Alan Gauld wrote:
Re: What to use instead of nntplib? (at least in part)
On 15/05/2023 22:11, Grant Edwards wrote:
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
What should I use in place of nntplib?
I'm curious as to why nntplib is deprecated? Surely there are still a
lot of nntp servers around
there must be this list is mirrored on one, and AFAICS some pythoners use that
way to post (over the list)
On 2023-05-15, Skip Montanaro <skip.montanaro@gmail.com> wrote:
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for
removal in Python 3.13
What should I use in place of nntplib?
I'd recommend creating a PyPI project with the existing 3.12 code,
then using that from 3.13 onward.
That may be the easiest option. :/
I did some googling for utilities to post articles to NNTP servers and
found "postnews". Of course it's written in Python and depends on
nntplib...
On 16/05/2023 10:06, Cameron Simpson wrote:
I'm curious as to why nntplib is deprecated? Surely there are still a
lot of nntp servers around, both inside and outside corporate firewalls?
Is there a problem with the module or is it just perceived as no longer
required?
See PEP 594: https://peps.python.org/pep-0594/
Thanks Cameron.
A scary list; I must have a dozen projects from the late 90s still
live that are using many of these! I'm glad I'm retired and won't
be the one who has to fix 'em :-)
Grizzy Adams <RealGrizzlyAdams@vivaldi.net> wrote:
Tuesday, May 16, 2023 at 9:26, Alan Gauld wrote:
Re: What to use instead of nntplib? (at least in part)
On 15/05/2023 22:11, Grant Edwards wrote:
I got a nice warning today from the inews utility I use daily:
DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13
What should I use in place of nntplib?
I'm curious as to why nntplib is deprecated? Surely there are still a
lot of nntp servers around
there must be this list is mirrored on one, and AFAICS some pythoners use that
way to post (over the list)
Yes, me for one, a good newsreader is really a wonderful way to manage technical 'lists' like this one.
Usenet news is still very much alive though a minority interest now
I suspect.
Yes, me for one, a good newsreader is really a wonderful way to manage technical 'lists' like this one.
IMO, there's nothing better. Newsreaders were designed from the
beginning to deal with the sort of traffic and usage patterns seen in
mailing lists. Using an MUA (even combined with something like
procmail) and folders/labels is just a pale imitation of a good
newsreader.
Usenet news is still very much alive though a minority interest now
I suspect.
This list's decision to stop accepting postings via news.gmane.io is
what prompted me to write my own "inews" application in Python that
uses SMTP for some groups and NNTP for others when I "post" via slrn.
I probably use NNTP more to access mailing lists via gmane than I use
it for accessing the "real" Usenet groups.
NNTP is not just for Usenet...
See PEP 594: https://peps.python.org/pep-0594/
Thanks Cameron.
A scary list; I must have a dozen projects from the late 90s still
live that are using many of these! I'm glad I'm retired and won't
be the one who has to fix 'em :-)
It has been pointed out to me that Perl still has a supported NNTP
library. That stung. However, it's a CPAN module, which is more
equivalent to PyPI than to the standard library, so I guess that it
isn't as bad a loss of face as I feared.
Who ever came up with "Removing dead batteries" as a slogan, when
some of those batteries still work perfectly well, needs to rethink
it. Go ahead and remove code that no longer works, OK. But removing unpopular modules? That undercuts the entire philosophy of the
platform, in my opinion.
On 2023-05-21, Retrograde <fungus@amongus.com> wrote:
Who ever came up with "Removing dead batteries" as a slogan, when
some of those batteries still work perfectly well, needs to rethink
it. Go ahead and remove code that no longer works, OK. But removing
unpopular modules? That undercuts the entire philosophy of the
platform, in my opinion.
And one of the metrics of "popularity" seems to be "activity"
(e.g. changes committed). For things that have been around for 20+
years and have all the features they need and all of the bugs fixed
(and are now very stable) that lack of "activity" is interpreted as "unpopular" regardless of how many people are using the module.
My understanding is that nntplib isn't being erased from reality,
it's merely being removed from the set of modules that are provided
by default.
I presume that once it's removed from the core, it will still be
possible to install it via pip or some other mechanism.
It won't magically be available via pip unless someone steps up to maintain it as a PyPI package
My understanding is that nntplib isn't being erased from reality,
it's merely being removed from the set of modules that are provided
by default.
I presume that once it's removed from the core, it will still be
possible to install it via pip or some other mechanism.
My understanding is that nntplib isn't being erased from reality,
it's merely being removed from the set of modules that are provided
by default.
I presume that once it's removed from the core, it will still be
possible to install it via pip or some other mechanism.
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
import nntplib
If my understanding is correct, why is this such a big problem?
On 2023-05-21, Retrograde <fungus@amongus.com> wrote:
Who ever came up with "Removing dead batteries" as a slogan, when
some of those batteries still work perfectly well, needs to rethink
it. Go ahead and remove code that no longer works, OK. But removing
unpopular modules? That undercuts the entire philosophy of the
platform, in my opinion.
And one of the metrics of "popularity" seems to be "activity"
(e.g. changes committed). For things that have been around for 20+
years and have all the features they need and all of the bugs fixed
(and are now very stable) that lack of "activity" is interpreted as "unpopular" regardless of how many people are using the module.
--
Grant
On 2023-05-22, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
My understanding is that nntplib isn't being erased from reality,
it's merely being removed from the set of modules that are provided
by default.
I presume that once it's removed from the core, it will still be
possible to install it via pip or some other mechanism.
If somebody rescues the code and puts it in Pypi (assuming the
copyright owner allows that). IIRC, somebody is trying to do that, but
there some contention because Pypi won't allow the use of the name
"nntplib" for the package because it conflicts with a library builtin.
To add an additional bitching, I don't really ever see anyone discussing
the dynamics and downsides of github (and things like it). Or how things
like mozilla killing off usenet and mailing lists changes the entire
dynamic of who manages and gets a say in how technology gets to move
forward.
I used to run my own mail server.
Now I don't.
Practicality beats purity.
To be quite frank, the moralistic approach of complaining about the
way other people are too happy to give control to big companies is
NEVER going to achieve anything. You're welcome to be a little island,
that one Gaulish village that still holds out against the invaders,
but all you'll actually be doing is sidelining yourself.
I'm not saying that this is a GOOD situation, but facts are facts, and
I use Chrome and GitHub and a wide variety of other tools that aren't
free.
ChrisA
Even if I did partake in the modern github style of code distribution,
how many packages have issues where the "maintainers" inherited the
package and really haven't dug deep enough in to the code to see how it really works. They have issues that sit around for YEARS, and when
someone says "this sucks, this is broken and could be better", and the githubian response is typically a dismissive "Nothing is stopping you
from making a PR".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 79:17:36 |
Calls: | 6,716 |
Files: | 12,247 |
Messages: | 5,357,912 |