great, saves me 15 lines.<br>thanks<br><br>sk<br><br><div><span class="gmail_quote">On 2/11/07, <b class="gmail_sendername">Kent Johnson</b> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
shawn bright wrote:<br>> one last queston. if i have a class that i import as a module, say a<br>> script that emails me when something goes wrong.<br>> so i have a file called my_own_email.py and in it a class called
<br>> MyOwnEmail. Now MyOwnEmail needs the smtplib module. Do i need to import<br>> it just for the my_own_email.py or do i need to import it in both that<br>> module and my program that calls it. ?<br><br>You only have to import a module in the module that uses it.
<br><br>Kent<br><br></blockquote></div><br>