about main()

Marko Rauhamaa marko at pacujo.net
Thu Jul 5 07:11:52 EDT 2018


Abdur-Rahmaan Janhangeer <arj.python at gmail.com>:

> just when to use main() in
>
> if __name__ == '__main__' :
>     main()
>
> is far is it good in py?
>
> or should file intended to be run just not include it?

I think all Python programs should have it.


Marko


More information about the Python-list mailing list