On Thu, 15 Nov 2012 05:46:49 -0800, chip9munk wrote: > On Thursday, November 15, 2012 2:44:22 PM UTC+1, Martin P. Hellwig > wrote: >> I assume you have at the end of the debugTest.py file something like >> this: >> if __name__ == '__main__': >> test() > > no i did not have it... > > is main really necessary?
doing it that way means that it will only call test when executed directly & not when imported as a module -- I used to be an agnostic, but now I'm not so sure. -- http://mail.python.org/mailman/listinfo/python-list