R. David Murray added the comment:
Ah, I'd forgotten python2 email used the lazy importer. We dropped that in
python3.
I don't think that I want to fix this, since you have to do the import in
python3 anyway.
--
components: +email
nosy: +barry
___
Yinian Sun added the comment:
These MIME except MIMEApplication can be directly accessed.
>>> import email
>>> email.mime.Text
>>> email.mime.Application
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'Application'
According to Lib\em
R. David Murray added the comment:
This is by design. If you want to load the application module, you have to do
so explicitly:
import email.mime.application
This is similar to the way many other packages are organized. An __init__ file
importing a submodule is the (relatively) exceptiona
New submission from yinian1992:
I have a python 2.7.3 installation both on Debian 6 and Windows 7. And under
both environment email.mime.application cannot access.
>>> email.mime.application
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribu