Message25090
Python's nntplib currently raises a generic EOFError if
the connection is closed unexpectedly. This seems
inconsistent with other Python libraries (smtplib,
imaplib, etc.) and is unexpected behaviour. It seems
that a new Exception class derived from the NNTPError
(e.g., NNTPConnectionError) should be used instead.
As it stands now, the only indication that EOFError can
be raised is in the docstring for the internal
getline() method. There is no mention in the
documentation that higher level methods call getline()
and can raise the EOFError to the application level.
If no new exception class is added for this situation,
it would be nice to have this behaviour noted in the
documentation. |
|
Date |
User |
Action |
Args |
2007-08-23 14:31:09 | admin | link | issue1186900 messages |
2007-08-23 14:31:09 | admin | create | |
|