Message172169
| 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: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 |
|