On Thu, May 28, 2020, 12:17 PM <[email protected]> wrote:

> The OP is proposing as a possibility: "we could require user to have only
> one if __name__ == '__main__':". In that case, functionality will be
> reduced, won't it?
>

I don't support the proposal. However, I've also never written a script
with multiple 'if __name__ == __main__' lines, and I think if I saw one I'd
complain in code review.

It's hard for me to imagine how multiple entry point to a script can be a
good thing.

>
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ARMVJL5BXEVZAEZRBWWGMRGZ2IAOPTMR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to