[ python-Bugs-1251528 ] smtplib and email.py
SourceForge.net
noreply at sourceforge.net
Thu Aug 11 09:36:35 CEST 2005
Bugs item #1251528, was opened at 2005-08-03 19:50
Message generated for change (Comment added) made by josiahcarlson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1251528&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Cosmin Nicolaescu (cosminn)
Assigned to: Nobody/Anonymous (nobody)
Summary: smtplib and email.py
Initial Comment:
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.
----------------------------------------------------------------------
Comment By: Josiah Carlson (josiahcarlson)
Date: 2005-08-11 00:36
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1251528&group_id=5470
More information about the Python-bugs-list
mailing list