OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

about main()


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