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.

classification
Title: Make os.waitpid() option parameter optional.
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.7
process
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 2022-04-11 14:58 by admin.

Files
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](http://bugs.python.org/file44822/os_waitpid-optional_options.diff) submitted by StyXman.
History
Date User Action Args
2022-04-11 14:58:37adminsetgithub: 72460
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