R. David Murray <rdmur...@bitdance.com> added the comment: Thinking about this some more, I now think it is incorrect that an 8bit header causes getitem to return a Header object. I think instead it should be returning the stringified version of the header, including the unknown-8bit encoding. That way decode_header can be used as normal to recover the original bytes.
I hate making a change like this in a bug fix release, but in this case I think it is the right thing to do. I will propose a patch soon. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11584> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com