[Tutor] question about importing threads
Kent Johnson
kent37 at tds.net
Sun Feb 11 22:39:45 CET 2007
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
More information about the Tutor
mailing list