Yinian Sun added the comment: These MIME except MIMEApplication can be directly accessed.
>>> import email >>> email.mime.Text <email.LazyImporter object at 0xb755d20c> >>> email.mime.Application Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'Application' According to Lib\email\__init__.py, it uses LazyImporter to deal with name mapping from new-style names to old-style name, and the _MIMENAMES list just doesn't include 'Application'. This causes the behavior inconformity. As issue1424065, the MIMEApplication added after other MIME class. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16146> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com