This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maggyero
Recipients cameron, docs@python, gvanrossum, iritkatriel, jack__d, lukasz.langa, maggyero, miss-islington, steven.daprano, terry.reedy
Date 2021-08-31.21:31:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630445497.4.0.0695616946594.issue39452@roundup.psfhosted.org>
In-reply-to
Content
@jack__d

Thanks for the rewrite! This is a great expansion. Unfortunately I didn’t have the time to review it before the merge. If I find something to be improved I will let you know.

@gvanrossum

> Your docs seem to promote the second, whereas I've usually preferred the former.

Are you sure? Yet in your 2003 blog post [*Python main() functions*](https://www.artima.com/weblogs/viewpost.jsp?thread=4829) you promoted the opposite idiom `if __name__ == "__main__": sys.exit(main())` over the idiom `if __name__ == "__main__": main()`:

> Now the `sys.exit()` calls are annoying: when `main()` calls `sys.exit()`, your interactive Python interpreter will exit! The remedy is to let `main()`'s return value specify the exit status.

I am interested in the rationale if you changed your mind.
History
Date User Action Args
2021-08-31 21:31:37maggyerosetrecipients: + maggyero, gvanrossum, terry.reedy, cameron, steven.daprano, docs@python, lukasz.langa, miss-islington, iritkatriel, jack__d
2021-08-31 21:31:37maggyerosetmessageid: <1630445497.4.0.0695616946594.issue39452@roundup.psfhosted.org>
2021-08-31 21:31:37maggyerolinkissue39452 messages
2021-08-31 21:31:37maggyerocreate