Message172169
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. |
|
Date |
User |
Action |
Args |
2012-10-06 05:02:40 | yinian1992 | set | recipients:
+ yinian1992, r.david.murray |
2012-10-06 05:02:40 | yinian1992 | set | messageid: <1349499760.67.0.910198588813.issue16146@psf.upfronthosting.co.za> |
2012-10-06 05:02:40 | yinian1992 | link | issue16146 messages |
2012-10-06 05:02:39 | yinian1992 | create | |
|