Wouldn't the standard idiom be to actually put the code under the
if-name, and not make a whole new main() function?

I'm not sure I see the reason behind main(), couldn't that also
interfere with other modules since main() seems like it might be
common, not sure how it would work as I'm pretty new to Python myself.
 from script import * ... what happens when you have two main()s?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to