En Fri, 19 Oct 2007 20:29:03 -0300, Robert Dailey <[EMAIL PROTECTED]> escribió:
> I've read various portions of the Python 2.5 documentation in an > attempt to figure out exactly what the following condition represents: > > if __name__ == "__main__": > main() > > However, I was not able to determine what it is actually checking for. > Could someone point me in the way of a tutorial or explain this for > me? Thanks. You won't find it (easily) on the 2.5 docs, but it's covered in the upcoming 2.6 tutorial: http://docs.python.org/dev/tutorial/modules.html#executing-modules-as-scripts -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list