Title: Make os.waitpid() option parameter optional.
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: StyXman, jaysinh.shukla
Priority: normal Keywords: patch

Created on 2016-09-25 16:46 by StyXman, last changed 2016-10-01 18:45 by jaysinh.shukla.

File name Uploaded Description Edit
os_waitpid-optional_options.diff StyXman, 2016-09-25 16:46 review
os_waitpid_updated_codebase_2_jaysinh.diff jaysinh.shukla, 2016-10-01 18:45 review
Messages (2)
msg277383 - (view) Author: Marcos Dione (StyXman) * Date: 2016-09-25 16:46
According to the documentation, the second parameter for os.waitpid(), called options, must be most of the time 0. So why not make it the default value?

The attached patch implements the proposed change, which is API compatible with current usages of the function.
msg277827 - (view) Author: Jaysinh shukla (jaysinh.shukla) * Date: 2016-10-01 18:24
Removing the `options` default argument from all the call to os.waitpid.

Note: This patch is based on [this patch]( submitted by StyXman.
Date User Action Args
2016-10-01 18:45:18jaysinh.shuklasetfiles: + os_waitpid_updated_codebase_2_jaysinh.diff
2016-10-01 18:44:28jaysinh.shuklasetfiles: - os_waitpid_updated_codebase_jaysinh.diff
2016-10-01 18:24:55jaysinh.shuklasetfiles: + os_waitpid_updated_codebase_jaysinh.diff
nosy: + jaysinh.shukla
messages: + msg277827

2016-09-25 16:46:57StyXmansettype: enhancement
components: + Library (Lib)
versions: + Python 3.7
2016-09-25 16:46:15StyXmancreate