[Tutor] NNTP Client

Stephen Nelson-Smith sanelson at gmail.com
Tue Nov 13 17:01:30 CET 2007


On Nov 13, 2007 2:13 PM, Stephen Nelson-Smith <sanelson at gmail.com> wrote:

> ought it to be straightforward to write a client that does this task?

Well:

>>> server = NNTP('news.gmane.org')
>>> resp, count, first, last, name =
server.group("gmane.linux.redhat.enterprise.announce")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/nntplib.py", line 346, in group
    resp = self.shortcmd('GROUP ' + name)
  File "/usr/lib/python2.5/nntplib.py", line 260, in shortcmd
    return self.getresp()
  File "/usr/lib/python2.5/nntplib.py", line 215, in getresp
    resp = self.getline()
  File "/usr/lib/python2.5/nntplib.py", line 207, in getline
    if not line: raise EOFError
EOFError

What's wrong with that then?

S.


More information about the Tutor mailing list