if (__name__ == '__main__'): main(sys.argv[1:])
Erik Heneryd
erik at heneryd.com
Tue Apr 20 18:29:25 EDT 2004
Eli Stevens (WG.c) wrote:
> I have a question about proper Python style when it comes to having a main
> function in a module. I'm fairly new to Python - a few months of
> very-part-time tinkering (lots'o'Java at work, shrug); my apologies if this
> has been hashed out before. Random Googling didn't enlighten me, so instead
> I'll ask here. :)
>
Guido wrote an article on the subject:
http://www.artima.com/weblogs/viewpost.jsp?thread=4829
Erik Heneryd
More information about the Python-list
mailing list