Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdded56

Browse files
committed
Clarify that IMAP4() implicitly calls open(), and that logout() implicitly calls shutdown().
1 parent 7a0afd3 commit fdded56

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Doc/library/imaplib.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,10 @@ An :class:`IMAP4` instance has the following methods:
298298

299299
.. method:: IMAP4.open(host, port)
300300

301-
Opens socket to *port* at *host*. The connection objects established by this
301+
Opens socket to *port* at *host*. This method is implicitly called by
302+
the :class:`IMAP4` constructor. The connection objects established by this
302303
method will be used in the ``read``, ``readline``, ``send``, and ``shutdown``
303-
methods. You may override this method.
304+
methods. You may override this method.
304305

305306

306307
.. method:: IMAP4.partial(message_num, message_part, start, length)
@@ -390,7 +391,8 @@ An :class:`IMAP4` instance has the following methods:
390391

391392
.. method:: IMAP4.shutdown()
392393

393-
Close connection established in ``open``. You may override this method.
394+
Close connection established in ``open``. This method is implicitly
395+
called by :meth:`IMAP4.logout`. You may override this method.
394396

395397

396398
.. method:: IMAP4.socket()

0 commit comments

Comments
 (0)