On 10/5/12 12:19 PM, Vinay Sajip wrote:
Tarek Ziadé <tarek <at> ziade.org> writes:
I like the idea of having a main section to play with the tools, people
can invoke with -m
I don't think its a bad idea to have it in each module, like what Python
does
for SimpleHTTPServer or json.tools
I've no problem with having a "if __name == '__main__'" section, but I don't
think it should need to be unit tested, or form part of the contract of the
module.
oh yeah - I don't care about this part :)
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig