This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: nntplib: group descriptions and RFC2980
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: jae, loewis
Priority: high Keywords: patch

Created on 2002-09-06 02:37 by jae, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
libnntplib.tex.patch jae, 2004-07-26 03:17 doc patch
nntplib.py.patch jae, 2004-07-26 03:18
Messages (4)
msg41107 - (view) Author: Jürgen A. Erhard (jae) Date: 2002-09-06 02:37
nntplib's NNTP.xgtitle() is deprecated by RFC2980.  And
some servers
(like leafnode) don't even know XGTITLE.

This adds two methods to NNTP, description and
descriptions.

NNTP.description just gets the description of one group
(and doesn't
return the server status code).

NNTP.descriptions does the same as xgtitle does now, but in
a more general, and RFC2980 compliant way.

It tries the RFC2980 way (LIST NEWSGROUPS) and if this
fails,
falls back to XGTITLE.

This patch also adds an new optional "groups" argument
to the
NNTP.list.  I thought it fitting to mirror the
"LIST/LIST NEWSGROUPS" in the method.

Feel free to kill this part, I'm not really attached to
it.  I do prefer description/descriptions, as they make
the code more self-documenting.

(If you insist: I'm on Debian GNU/Linux "sid",
python2.2.1... but the patch should apply cleanly
against CVS, doerwalter's checkin
shouldn't conflict)
msg41108 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-10-13 13:08
Logged In: YES 
user_id=21627

Can you please provide documentation patches (for
libnntplib.tex) as well?
msg41109 - (view) Author: Jürgen A. Erhard (jae) Date: 2004-07-26 03:17
Logged In: YES 
user_id=10380

Killed the change to the "list" method.

Removed old patch, added new patch, and a doc patch.
msg41110 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-07-26 12:41
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as 

libnntplib.tex 1.30
nntplib.py 1.38
ACKS 1.273
NEWS 1.1054
History
Date User Action Args
2022-04-10 16:05:39adminsetgithub: 37139
2002-09-06 02:37:41jaecreate