Issue 10283: New parameter for an NNTP newsgroup pattern in LIST ACTIVE (original) (raw)

NNTP.list(*, file=None)

Couldn't a "grouppattern" argument be added? LIST ACTIVE handles a newsgroup pattern (and it would then answer less groups -- also useful for the test suite of nntplib)

Something like that:

--- nntplib.py.OLD 2010-11-01 19:04:10.000000000 +0100 +++ nntplib.py 2010-11-01 19:57:50.000000000 +0100 @@ -568,14 +568,18 @@ cmd = 'NEWNEWS {0} {1} {2}'.format(group, date_str, time_str) return self._longcmdstring(cmd, file)

Then, you could perhaps re-activate the LIST test in the test suite...

# Disabled with gmane as it produces too much data
test_list = None

In the documentation:

and describe it the same way grouppattern is described in the following command (LIST NEWSGROUPS).