[Tutor] Input from CGI ?

Rene Lopez renx99 at gmail.com
Fri Nov 5 14:45:30 CET 2004

> And what this thing does ( I see it in almost every code example) :
> if __name__ == '__main__':
>    main()

This is what runs when you run the program directly.  the program's
__name__ always equals "__main__" when it's the top most program and
not some sort of module being imported into another program.


More information about the Tutor mailing list