[issue9795] nntplib.NNTP should support the context protocol

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed in r88734. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: (socket.error, EOFError) after quit() indicates that the socket is disconnected, in which case we should not raise any error (or at least, this is the approach we're using in ftplib) while all other NNTPError related errors are not suppressed. --

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not sure that silencing errors from quit() is the right thing. Is there any reason? -- ___ Python tracker ___ _

[issue9795] nntplib.NNTP should support the context protocol

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch versions: +Python 3.3 -Python 3.2 Added file: http://bugs.python.org/file20894/nntplib-context-manager.patch ___ Python tracker

[issue9795] nntplib.NNTP should support the context protocol

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Assigning this to me. Hopefully this should go into the plan of adding a context manager to all network libs (ftplib, smptlib, imaplib, etc..) in time for Python 3.2. -- assignee: -> giampaolo.rodola ___ Python

[issue9795] nntplib.NNTP should support the context protocol

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9795] nntplib.NNTP should support the context protocol

2010-09-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : As the title says. __exit__() simply has to call self.quit(), AFAICT. -- components: Library (Lib) messages: 115815 nosy: pitrou priority: normal severity: normal status: open title: nntplib.NNTP should support the context protocol type: feature reque