[issue11137] clarify use of imaplib IMAP4(_SSL) shutdown
New submission from John <jh45dev@gmail.com>: Attempting IMAP4_SSL.shutdown() after IMAP4_SSL.logout() throws an error because the socket is already closed. (I cannot test with plain IMAP4.) Please add appropriate notice, perhaps under IMAP4.shutdown(). Perhaps something like "If you do not use open(), and do only login() and logout(), you do not need shutdown(), as logout() does it for you." -- jh ---------- assignee: docs@python components: Documentation messages: 128096 nosy: docs@python, jh45 priority: normal severity: normal status: open title: clarify use of imaplib IMAP4(_SSL) shutdown versions: Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11137> _______________________________________
Westley Martínez <anikom15@gmail.com> added the comment: Perhaps we should say something regarding that shutdown, and similar methods, must be called after open. ---------- nosy: +anikom15 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11137> _______________________________________
Antoine Pitrou <pitrou@free.fr> added the comment: Ok, clarified in r88371. Thank you! ---------- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.1 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11137> _______________________________________
participants (3)
-
Antoine Pitrou -
John -
Westley Martínez