R. David Murray added the comment: Well, it's about backward compatibility, and the email module already uses str subclasses for headers in the new code, for backward compatibility reasons. I hope this does not prove fragile in practice, but I have no way of knowing for sure, of course.
It occurs to me, however, that the (new) content-type header's value already has the maintype/subtype attributes, so there's really no need to change the return type of the get_content_type method. For internal use...a named tuple is not adequate, since I need to preserve the original case of the values. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19280> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com