Changeset 391 for python/trunk/Doc/library/email.util.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/email.util.rst
r2 r391 1 :mod:`email `: Miscellaneous utilities2 ------------------------------------- 1 :mod:`email.utils`: Miscellaneous utilities 2 ------------------------------------------- 3 3 4 4 .. module:: email.utils … … 42 42 This method returns a list of 2-tuples of the form returned by ``parseaddr()``. 43 43 *fieldvalues* is a sequence of header field values as might be returned by 44 :meth:`Message.get_all `. Here's a simple example that gets all the recipients45 of a message::44 :meth:`Message.get_all <email.message.Message.get_all>`. Here's a simple 45 example that gets all the recipients of a message:: 46 46 47 47 from email.utils import getaddresses … … 131 131 132 132 When a header parameter is encoded in :rfc:`2231` format, 133 :meth:`Message.get_param` may return a 3-tuple containing the character set, 133 :meth:`Message.get_param <email.message.Message.get_param>` may return a 134 3-tuple containing the character set, 134 135 language, and value. :func:`collapse_rfc2231_value` turns this into a unicode 135 136 string. Optional *errors* is passed to the *errors* argument of the built-in … … 153 154 .. versionchanged:: 2.4 154 155 The :func:`decode` function has been removed; use the 155 :meth:`Header.decode_header` method instead. 156 :meth:`Header.decode_header <email.header.Header.decode_header>` method 157 instead. 156 158 157 159 .. versionchanged:: 2.4 158 The :func:`encode` function has been removed; use the :meth:`Header.encode `159 method instead.160 The :func:`encode` function has been removed; use the :meth:`Header.encode 161 <email.header.Header.encode>` method instead. 160 162 161 163 .. rubric:: Footnotes
Note:
See TracChangeset
for help on using the changeset viewer.