[Tutor] question about importing threads

shawn bright nephish at gmail.com
Sun Feb 11 22:59:19 CET 2007

great, saves me 15 lines.


On 2/11/07, Kent Johnson <kent37 at tds.net> wrote:
> shawn bright wrote:
> > one last queston. if i have a class that i import as a module, say a
> > script that emails me when something goes wrong.
> > so i have a file called my_own_email.py and in it a class called
> > MyOwnEmail. Now MyOwnEmail needs the smtplib module. Do i need to import
> > it just for the my_own_email.py or do i need to import it in both that
> > module and my program that calls it. ?
> You only have to import a module in the module that uses it.
> Kent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070211/6abfb1b2/attachment.html 

More information about the Tutor mailing list