This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yinian1992
Recipients r.david.murray, yinian1992
Date 2012-10-06.05:02:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349499760.67.0.910198588813.issue16146@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-10-06 05:02:40yinian1992setrecipients: + yinian1992, r.david.murray
2012-10-06 05:02:40yinian1992setmessageid: <1349499760.67.0.910198588813.issue16146@psf.upfronthosting.co.za>
2012-10-06 05:02:40yinian1992linkissue16146 messages
2012-10-06 05:02:39yinian1992create