summaryrefslogtreecommitdiffstats
path: root/Doc/library/email.parser.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-13 20:46:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-13 20:46:05 (GMT)
commitb35c850a3f7e2e6d470bb9543b9ba83aa33047f7 (patch)
tree9d7c221e58a8585d0721cc8498ef98d24c3dc269 /Doc/library/email.parser.rst
parentf400ab40e4eb7dc6ad886920fb02ce4f7d1e929f (diff)
downloadcpython-b35c850a3f7e2e6d470bb9543b9ba83aa33047f7.zip
cpython-b35c850a3f7e2e6d470bb9543b9ba83aa33047f7.tar.gz
cpython-b35c850a3f7e2e6d470bb9543b9ba83aa33047f7.tar.bz2
#11684: Complete parser bytes interface by adding BytesHeaderParser
Patch by Steffen Daode Nurpmeso.
Diffstat (limited to 'Doc/library/email.parser.rst')
-rw-r--r--Doc/library/email.parser.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/library/email.parser.rst b/Doc/library/email.parser.rst
index 8da0d74d..c72d3d4 100644
--- a/Doc/library/email.parser.rst
+++ b/Doc/library/email.parser.rst
@@ -94,12 +94,14 @@ Parser class API
The :class:`Parser` class, imported from the :mod:`email.parser` module,
provides an API that can be used to parse a message when the complete contents
of the message are available in a string or file. The :mod:`email.parser`
-module also provides a second class, called :class:`HeaderParser` which can be
-used if you're only interested in the headers of the message.
-:class:`HeaderParser` can be much faster in these situations, since it does not
-attempt to parse the message body, instead setting the payload to the raw body
-as a string. :class:`HeaderParser` has the same API as the :class:`Parser`
-class.
+module also provides header-only parsers, called :class:`HeaderParser` and
+:class:`BytesHeaderParser`, which can be used if you're only interested in the
+headers of the message. :class:`HeaderParser` and :class:`BytesHeaderParser`
+can be much faster in these situations, since they do not attempt to parse the
+message body, instead setting the payload to the raw body as a string. They
+have the same API as the :class:`Parser` and :class:`BytesParser` classes.
+
+.. versionadded:: 3.3 BytesHeaderParser
.. class:: Parser(_class=email.message.Message)