Author vstinner
Recipients vstinner
Date 2020-03-30.14:29:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585578577.66.0.275776619974.issue40094@roundup.psfhosted.org>
In-reply-to
Content
> Other name ideas:
> * wait_status_to_exit_code()

Well, anothe option is:

* waitstatus_to_exitcode()

While the documentation uses "exit code", the code commonly uses "exitcode" or "returncode". Moreover, in the os module, underscore is not used to separated words in function names. Examples: "getenv" not "get_env", "setpriority" not "set_priority", etc.

Using "_to_" in the function name reduces the risk of conflict with a future addition to the libc. It's rare that libc function names use "_". One of the few exception: get_current_dir_name() which is a glibc extension.
History
Date User Action Args
2020-03-30 14:29:37vstinnersetrecipients: + vstinner
2020-03-30 14:29:37vstinnersetmessageid: <1585578577.66.0.275776619974.issue40094@roundup.psfhosted.org>
2020-03-30 14:29:37vstinnerlinkissue40094 messages
2020-03-30 14:29:37vstinnercreate