great, saves me 15 lines.
thanks

sk

On 2/11/07, Kent Johnson <[EMAIL PROTECTED]> 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


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to