R. David Murray added the comment: Having thought further about this (prompted by a suggested fix by Varun Sharma), I'm going to reject it. The reason is that the email package in 3.2 compatibility mode still uses the Header object to encapsulate headers that have invalid binary data in them. This means that if we added the check to Header, the email package could throw errors at unexpected times (that is, when retrieving a header from a parsed message).
In retrospect I think returning a Header object for invalid data was probably a bad idea, but what's done is done. ---------- resolution: -> rejected stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19470> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com