[issue19280] Add a datatype to represent mime types to the email module

R. David Murray report at bugs.python.org
Sun Oct 20 23:17:47 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19280>
_______________________________________


More information about the Python-bugs-list mailing list