On 29/05/20 8:05 am, tritium-l...@sdamon.com wrote:
People write main entry points that are not exactly this?
If __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
It's not clear that exiting with the return value of main() is
the most Pythonic thing to do -- it's more of a C idiom that
doesn't seem so useful when exceptions exist.
--
Greg
_______________________________________________
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/UEFQEB3YZIB45KWAHPBWSZLFDBSA672Y/
Code of Conduct: http://python.org/psf/codeofconduct/