diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 07:03:11 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 07:03:11 (GMT) |
| commit | 319f3a10f907bf08d1698a073ca4664d366a0b2c (patch) | |
| tree | 9c7dd21e4167015632e105999e1f9cd296a3cbb8 /Doc/library/email.util.rst | |
| parent | 86d26238d31c0fc9f22390c0c92839a703cf67b9 (diff) | |
| parent | e0f0cf406757cea35db0aeaad592c2418d521b45 (diff) | |
| download | cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.zip cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.tar.gz cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.tar.bz2 | |
Issue #18761: Improved cross-references in email documentation.
Diffstat (limited to 'Doc/library/email.util.rst')
| -rw-r--r-- | Doc/library/email.util.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/email.util.rst b/Doc/library/email.util.rst index bad0b24..f75975e 100644 --- a/Doc/library/email.util.rst +++ b/Doc/library/email.util.rst @@ -49,8 +49,8 @@ There are several useful utilities provided in the :mod:`email.utils` module: This method returns a list of 2-tuples of the form returned by ``parseaddr()``. *fieldvalues* is a sequence of header field values as might be returned by - :meth:`Message.get_all`. Here's a simple example that gets all the recipients - of a message:: + :meth:`Message.get_all <email.message.Message.get_all>`. Here's a simple + example that gets all the recipients of a message:: from email.utils import getaddresses @@ -187,10 +187,11 @@ There are several useful utilities provided in the :mod:`email.utils` module: .. function:: collapse_rfc2231_value(value, errors='replace', fallback_charset='us-ascii') When a header parameter is encoded in :rfc:`2231` format, - :meth:`Message.get_param` may return a 3-tuple containing the character set, + :meth:`Message.get_param <email.message.Message.get_param>` may return a + 3-tuple containing the character set, language, and value. :func:`collapse_rfc2231_value` turns this into a unicode string. Optional *errors* is passed to the *errors* argument of :class:`str`'s - :func:`encode` method; it defaults to ``'replace'``. Optional + :func:`~str.encode` method; it defaults to ``'replace'``. Optional *fallback_charset* specifies the character set to use if the one in the :rfc:`2231` header is not known by Python; it defaults to ``'us-ascii'``. |
