Skip to content

Commit 8d78010

Browse files
author
Forest
committed
doc: imaplib: elaborate in note re: IMAP4.response
1 parent e8a8509 commit 8d78010

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/imaplib.rst

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

381381
.. note::
382382

383-
The :class:`!Idler` object returned by :meth:`IMAP4.idle` is usable only
384-
within a :keyword:`with` statement. To retrieve unsolicited IMAP
385-
responses outside that context, see :meth:`IMAP4.response`.
383+
The iterator returned by :meth:`IMAP4.idle` is usable only within a
384+
:keyword:`with` statement. Before or after that context, unsolicited
385+
responses are collected internally whenever a command finishes, and can
386+
be retrieved with :meth:`IMAP4.response`.
386387

387388
.. note::
388389

0 commit comments

Comments
 (0)