Re: What to use instead of nntplib?

2023-05-16 Thread Grant Edwards
On 2023-05-16, Chris Green  wrote:
> Grizzy Adams  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.

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...






-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Chris Green
Grizzy Adams  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.

-- 
Chris Green
ยท
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Grant Edwards
On 2023-05-16, Alan Gauld  wrote:
> 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?

Anything not used to develop AI is going to be depricated. An AI told
me, so it must be true.

>>> Is there a problem with the module or is it just perceived as no longer
>>> required?

Two issues were cited:

 1. It's too stable, bug-free, and feature-complete. IOW "no
activity". Apparently, people equate "activity" with "usage".

 2. A problem with automated testing, since there's no server side
support. Though testing a module's client implementation by having
it talk to a module's server implementation seems like a
singularly bad idea.


>> 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.

--
Grant


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Mats Wichmann

On 5/15/23 20:12, Grant Edwards wrote:

On 2023-05-15, Skip Montanaro  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...



Should mention that there was a thread on this at discuss.python.org. 
Which seems to have petered out without a real resolution.


https://discuss.python.org/t/allow-nntplib-on-pypi/25786


--
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Alan Gauld
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 :-)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Grizzy Adams via Python-list
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)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Cameron Simpson

On 16May2023 09:26, Alan Gauld  wrote:

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?


See PEP 594: https://peps.python.org/pep-0594/
--
https://mail.python.org/mailman/listinfo/python-list


Re: What to use instead of nntplib?

2023-05-16 Thread Alan Gauld
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?

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


-- 
https://mail.python.org/mailman/listinfo/python-list