While is possible to use `if __name__ == '__main__':` several times in the
same script, your proposed magic function `def __main__()` cannot be
redefined. Not to speak about lexical scope differences between one
approach and the other.

So your proposal is reducing features instead of expanding them.


Jose Veiga
_______________________________________________
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/7FWVJ2S72DCX4ANOBEDZJMBSMNXUM76A/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to