Python's equivalent to Main calling program and subprograms

Chris Rebert clp2 at rebertia.com
Wed Dec 1 12:18:48 EST 2010


On Wed, Dec 1, 2010 at 9:08 AM, m b <snert at hotmail.se> wrote:
>> >
>> > if __name__ == "__main__":
>> > main()
>
> What does this mean?

See http://effbot.org/pyfaq/tutor-what-is-if-name-main-for.htm
(which is the 3rd Google hit for "__main__")

Cheers,
Chris



More information about the Python-list mailing list