homepage

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.

Author r.david.murray
Recipients Bob.Glickstein, r.david.murray
Date 2012年05月07日.13:57:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336399068.44.0.819813694414.issue14740@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the report and patch suggestion, but...
This is actually the way it is designed to work. get_payload(i) returns the ith element of a multipart payload. Your workaround is in fact the correct way to do this operation. decode=True is documented to return None if is_multipart is True.
You will note that if decode=False, you get back the Message sub-object, not a string. Since decoding a Message object (as opposed to its payload) is not a meaningful operation, None is returned for decode=True. Arguably we should raise a TypeError or ValueError instead, but we don't for historical reasons.
History
Date User Action Args
2012年05月07日 13:57:48r.david.murraysetrecipients: + r.david.murray, Bob.Glickstein
2012年05月07日 13:57:48r.david.murraysetmessageid: <1336399068.44.0.819813694414.issue14740@psf.upfronthosting.co.za>
2012年05月07日 13:57:47r.david.murraylinkissue14740 messages
2012年05月07日 13:57:47r.david.murraycreate

AltStyle によって変換されたページ (->オリジナル) /