You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> a.description('gmane.comp.python.committers')
'CPython Committers (non-public) (Moderated)'
>>> a.descriptions('gmane.comp.python.committers')
('215 Newsgroup descriptions in form "group description"', {'gmane.comp.python.committers': 'CPython Committers (non-public) (Moderated)'})
Well, both results contain the same important string: 'CPython Committers (non-public) (Moderated)'. So I think that it's ok to drop xgtitle() as well.
Activity
corona10 commentedon Jan 17, 2020
Remove deprecated methods since Python 3.3.
Moreover nntplib.NNTP.xgtitle has not been exposed through docs.python.org
https://docs.python.org/3/library/nntplib.html
vstinner commentedon Jan 17, 2020
I'm not used to the NNTP protocol. Does the news.gmane.io support these 2 extensions?
corona10 commentedon Jan 17, 2020
Looks like xgtitle is supported but xpath is not.
>>> a.xgtitle('gmane.comp.python.committers') ('282 Descriptions in form "group description"', [('gmane.comp.python.committers', 'CPython Committers (non-public) (Moderated)')]) >>> a.xpath(message_id) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/nntplib.py", line 865, in xpath resp = self._shortcmd('XPATH {0}'.format(id)) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/nntplib.py", line 513, in _shortcmd return self._getresp() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/nntplib.py", line 458, in _getresp raise NNTPPermanentError(resp) nntplib.NNTPPermanentError: 500 What?vstinner commentedon Jan 17, 2020
>>> a.xgtitle('gmane.comp.python.committers') ('282 Descriptions in form "group description"', [('gmane.comp.python.committers', 'CPython Committers (non-public) (Moderated)')])Does https://docs.python.org/dev/library/nntplib.html#nntplib.NNTP.description give the same result?
corona10 commentedon Jan 17, 2020
Not exactly same but descriptions give a similar result.
vstinner commentedon Jan 17, 2020
Well, both results contain the same important string: 'CPython Committers (non-public) (Moderated)'. So I think that it's ok to drop xgtitle() as well.
berkerpeksag commentedon Jan 22, 2020
New changeset 1f0f102 by Berker Peksag (Dong-hee Na) in branch 'master':
bpo-39366: Remove xpath() and xgtitle() methods of NNTP (GH-18035)
1f0f102
berkerpeksag commentedon Jan 22, 2020
Thanks for the PR! I'm glad these previously deprecated functions are now gone.