Message400781
@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. |
|
Date |
User |
Action |
Args |
2021-08-31 21:31:37 | maggyero | set | recipients:
+ maggyero, gvanrossum, terry.reedy, cameron, steven.daprano, docs@python, lukasz.langa, miss-islington, iritkatriel, jack__d |
2021-08-31 21:31:37 | maggyero | set | messageid: <1630445497.4.0.0695616946594.issue39452@roundup.psfhosted.org> |
2021-08-31 21:31:37 | maggyero | link | issue39452 messages |
2021-08-31 21:31:37 | maggyero | create | |
|