[New-bugs-announce] [issue5951] email.message : get_payload args's documentation is confusing
jal
report at bugs.python.org
Thu May 7 01:45:21 CEST 2009
New submission from jal <loic.jaquemet+python at gmail.com>:
>From documentation :
http://docs.python.org/library/email.message.html?highlight=email#email.message.Message.get_payload
get_payload([i[, decode]])
"With optional argument i,[..] If the payload is a string (i.e.
is_multipart() is False) and i is given, a TypeError is raised."
and
"Optional decode is a flag [..] When True and the message is not a
multipart, the payload will be decoded if this header’s value is
quoted-printable or base64. [..]"
Now the bug :
On a non-multipart b64 email,
how can the second-level-option "decode" be used, when using
first-level-optional 'i' throws an exception...
Two fixes possible :
a) code fix
b) documentation fix
----------
assignee: georg.brandl
components: Documentation
messages: 87353
nosy: georg.brandl, trolldbois
severity: normal
status: open
title: email.message : get_payload args's documentation is confusing
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5951>
_______________________________________
More information about the New-bugs-announce
mailing list