We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/warsaw' closed_at = <Date 2004-06-26.03:41:04.000> created_at = <Date 2004-06-25.21:28:11.000> labels = ['invalid', 'library'] title = 'email module namespace inconsistent' updated_at = <Date 2004-06-26.03:41:04.000> user = 'https://bugs.python.org/melicertes'
bugs.python.org fields:
activity = <Date 2004-06-26.03:41:04.000> actor = 'barry' assignee = 'barry' closed = True closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2004-06-25.21:28:11.000> creator = 'melicertes' dependencies = [] files = [] hgrepos = [] issue_num = 980019 keywords = [] message_count = 2.0 messages = ['21316', '21317'] nosy_count = 2.0 nosy_names = ['barry', 'melicertes'] pr_nums = [] priority = 'low' resolution = 'not a bug' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue980019' versions = ['Python 2.3']
The text was updated successfully, but these errors were encountered:
Inconsistencies in the email module:
----------------
from email.Generator import Generator foo = Generator(...)
works as you'd expect, but the following: ----------------
import email foo = email.Generator.Generator(...)
raises AttributeError: 'module' object has no attribute 'Generator'.
The two should be equivalent, shouldn't they?
Sorry, something went wrong.
Logged In: YES user_id=12800
That's not the way Python works, and the email package isn't like os here; it doesn't automatically export its sub-modules. You'll need to do this:
import email.Generator foo = email.Generator.Generator()
warsaw
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: