--- Michael Soulier <[EMAIL PROTECTED]> wrote:
> On 4/19/05, Anthony Liu <[EMAIL PROTECTED]>
> wrote:
> > But every time, I run code2.py, the main() of
> code1.py
> > is run.
> 
> You probably did not protect your main function in
> both modules. 
> 
> ie. 
> 
> if __name__ == '__main__': main()
> 

You are certainly right, because I don't know how to
protect the main functions.  Where do I put

if __name__ == '__main__': main()

?




                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search. 
http://info.mail.yahoo.com/mail_250
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to