Commit fdded56a authored by Antoine Pitrou's avatar Antoine Pitrou

Clarify that IMAP4() implicitly calls open(), and that logout() implicitly calls shutdown().

parent 7a0afd3f
...@@ -298,9 +298,10 @@ An :class:`IMAP4` instance has the following methods: ...@@ -298,9 +298,10 @@ An :class:`IMAP4` instance has the following methods:
.. method:: IMAP4.open(host, port) .. method:: IMAP4.open(host, port)
Opens socket to *port* at *host*. The connection objects established by this Opens socket to *port* at *host*. This method is implicitly called by
the :class:`IMAP4` constructor. The connection objects established by this
method will be used in the ``read``, ``readline``, ``send``, and ``shutdown`` method will be used in the ``read``, ``readline``, ``send``, and ``shutdown``
methods. You may override this method. methods. You may override this method.
.. method:: IMAP4.partial(message_num, message_part, start, length) .. method:: IMAP4.partial(message_num, message_part, start, length)
...@@ -390,7 +391,8 @@ An :class:`IMAP4` instance has the following methods: ...@@ -390,7 +391,8 @@ An :class:`IMAP4` instance has the following methods:
.. method:: IMAP4.shutdown() .. method:: IMAP4.shutdown()
Close connection established in ``open``. You may override this method. Close connection established in ``open``. This method is implicitly
called by :meth:`IMAP4.logout`. You may override this method.
.. method:: IMAP4.socket() .. method:: IMAP4.socket()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment