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> &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; 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>&gt; one last queston. if i have a class that i import as a module, say a<br>&gt; script that emails me when something goes wrong.<br>&gt; so i have a file called my_own_email.py and in it a class called
<br>&gt; MyOwnEmail. Now MyOwnEmail needs the smtplib module. Do i need to import<br>&gt; it just for the my_own_email.py or do i need to import it in both that<br>&gt; 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>