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 hniksic
Recipients barry, docs@python, hniksic, r.david.murray
Date 2013-03-23.06:48:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks for pointing out the make_header(decode_header(...)) idiom, which I was indeed not aware of.  It solves the problem perfectly.

I agree that it is a doc bug.  While make_header is documented on the same place as decode_header and Header itself, it is not explained *why* I should call it if I already have in hand a perfectly valid Header instance.  Specifically, it is not at all clear that while unicode(h) and unicode(make_header(decode_header(h)) will return different things -- I would have expected make_header(decode_header(h)) to return an object indistinguishable from h.

Also, the policy=default parameter in Python 3 sounds great, it's exactly what one would expect.
Date User Action Args
2013-03-23 06:48:13hniksicsetrecipients: + hniksic, barry, r.david.murray, docs@python
2013-03-23 06:48:13hniksicsetmessageid: <>
2013-03-23 06:48:13hniksiclinkissue17505 messages
2013-03-23 06:48:13hniksiccreate