This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: smtplib and email.py
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: cosminn, josiahcarlson, rhettinger
Priority: normal Keywords:

Created on 2005-08-04 02:50 by cosminn, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg25975 - (view) Author: Cosmin Nicolaescu (cosminn) Date: 2005-08-04 02:50
If the script calling smtplib.SMTP() is called email.py
smtplib breaks and compiles email.py as a module.

I could not find any mention of this in the
documentation, and while this is not a big deal, it
should be documented.
msg25976 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2005-08-11 07:36
Logged In: YES 
user_id=341410

smtplib imports a portion of the standard library module
email .  By naming your module 'email', you are masking the
standard library 'email' that smtplib is trying to import.

This is a common problem among new users of Python.  Before
naming your modules using an obviously common name, take a
peek at the modules that are currently available (a listing
is available here: http://docs.python.org/modindex.html ).

Future versions of Python may fix such issues, but this is
not guaranteed.

Suggested close.
msg25977 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-08-11 07:40
Logged In: YES 
user_id=80475

Thanks Josiah.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42249
2005-08-04 02:50:34cosminncreate