This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: email.parser.BytesParser.parsebytes docs fix
Type: enhancement Stage: resolved
Components: Documentation, email Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: barry, docs@python, martin.panter, python-dev, r.david.murray, scop
Priority: normal Keywords: patch

Created on 2016-08-30 14:55 by scop, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
parser.patch scop, 2016-08-30 14:55 review
Messages (3)
msg273975 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-08-30 22:17
Actually it seems the parameter is called *text*:

>>> BytesParser().parsebytes(bytes=b"")
TypeError: parsebytes() got an unexpected keyword argument 'bytes'
>>> BytesParser().parsebytes(text=b"")
<email.message.Message object at 0xb6a2136c>
msg273981 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-08-31 00:31
Yeah, and it should probably remain so at this point.  It's not even completely wrong; from an email perspective it is text.  It should also say "equivalent", not "precisely equivalent", since BytesIO is not in fact involved in the implementation.
msg273986 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-08-31 01:17
New changeset b8dd9ae08a91 by R David Murray in branch '3.5':
#27893: arg name and bytes references in email.parser docs.
https://hg.python.org/cpython/rev/b8dd9ae08a91

New changeset 059f9f518834 by R David Murray in branch 'default':
Merge #27893: arg name and bytes references in email.parser docs.
https://hg.python.org/cpython/rev/059f9f518834
History
Date User Action Args
2022-04-11 14:58:35adminsetgithub: 72080
2016-08-31 01:19:30r.david.murraysetstatus: open -> closed
resolution: fixed
stage: resolved
2016-08-31 01:17:52python-devsetnosy: + python-dev
messages: + msg273986
2016-08-31 00:31:14r.david.murraysetmessages: + msg273981
2016-08-30 22:17:23martin.pantersettitle: BytesParser.parsebytes docstring fix -> email.parser.BytesParser.parsebytes docs fix
nosy: + barry, r.david.murray, martin.panter

messages: + msg273975

versions: + Python 3.5, Python 3.6
components: + email
2016-08-30 14:55:26scopcreate