[issue19280] Add a datatype to represent mime types to the email module
Antoine Pitrou
report at bugs.python.org
Fri Oct 18 16:45:16 CEST 2013
Antoine Pitrou added the comment:
I don't know much about the email module, but FWIW I think str subclasses (or any subclass of built-in types) are a delicate thing to expose in an API. I think a namedtuple would be the more idiomatic choice here (perhaps with an appropriate __str__ for convenient conversion / %-formatting / {}-formatting).
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19280>
_______________________________________
More information about the Python-bugs-list
mailing list