__main__ : What is this?

Robert Dailey rcdailey at gmail.com
Fri Oct 19 19:29:03 EDT 2007


Hi,

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.



More information about the Python-list mailing list