Artemis wrote: > > So your proposal is reducing features instead of > > expanding them. > > Surely, the __name__ variable would remain, so if people needed a more > > powerful way of doing it they could use that? But then, we introduce > > multiple ways of > > doing the same thing... > >
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? In any case, the proposal has been discussed and rejected in the past (PEP 299 https://www.python.org/dev/peps/pep-0299/) as Paul Sokolovsky has pointed out. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/H5TJ5RELMIJVVUZOEDGZE4TCCPOJTVIG/ Code of Conduct: http://python.org/psf/codeofconduct/