[ python-Bugs-980019 ] email module namespace inconsistent

SourceForge.net noreply at sourceforge.net
Fri Jun 25 18:29:43 EDT 2004


Bugs item #980019, was opened at 2004-06-25 16:28
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=980019&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
>Priority: 3
Submitted By: Charles (melicertes)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: email module namespace inconsistent

Initial Comment:
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?



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=980019&group_id=5470



More information about the Python-bugs-list mailing list