FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-149930: Clarify imaplib response helper types by savagemechanic · Pull Request #149963 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
14 changes: 8 additions & 6 deletions Doc/library/imaplib.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,23 @@ The second subclass allows for connections created by a child process:
The following utility functions are defined:


.. function:: Internaldate2tuple(datestr)
.. function:: Internaldate2tuple(resp)

Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local
time. The return value is a :class:`time.struct_time` tuple or
``None`` if the string has wrong format.
Parse a :term:`bytes-like object` containing an IMAP4 ``INTERNALDATE``
response and return the corresponding local time. The return value is a
:class:`time.struct_time` tuple or ``None`` if the input has wrong format.

.. function:: Int2AP(num)

Converts an integer into a bytes representation using characters from the set
[``A`` .. ``P``].


.. function:: ParseFlags(flagstr)
.. function:: ParseFlags(resp)

Converts an IMAP4 ``FLAGS`` response to a tuple of individual flags.
Converts a :term:`bytes-like object` containing an IMAP4 ``FLAGS`` response
to a tuple of individual flags as :class:`bytes`. The return value is an
empty tuple if the input has wrong format.


.. function:: Time2Internaldate(date_time)
Expand Down
Loading

Back | FazBrowse Home | New Git URL