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: spurious link to os.system() from os.times() documentation entry
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, emery.berger, iritkatriel, miss-islington
Priority: normal Keywords: patch

Created on 2022-01-01 00:00 by emery.berger, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30326 merged iritkatriel, 2022-01-01 14:18
PR 30459 merged miss-islington, 2022-01-07 18:28
PR 30460 merged miss-islington, 2022-01-07 18:28
Messages (4)
msg409442 - (view) Author: Emery Berger (emery.berger) Date: 2022-01-01 00:00
This is a minor documentation nit.

Under the entry for `os.times()`, there is a description of the various fields it returns (e.g., `user`, `system`).

```os.times()
Returns the current global process times. The return value is an object with five attributes:

user - user time

system - system time
```

For the latter, the word `system` is hyperlinked to the `os.system()` entry. This probably goes without saying, but there's no logical relationship of system time (time spent in the kernel on behalf of the process) to the system command (which invokes a command via a shell), so the link should be removed.
msg409992 - (view) Author: miss-islington (miss-islington) Date: 2022-01-07 18:28
New changeset 9b7aa6a9d678ba798c57fa5bbc800014dfe4fb91 by Irit Katriel in branch 'main':
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326)
https://github.com/python/cpython/commit/9b7aa6a9d678ba798c57fa5bbc800014dfe4fb91
msg409999 - (view) Author: miss-islington (miss-islington) Date: 2022-01-07 18:50
New changeset 6630952cf0955d205e48874a53b69868c97b8875 by Miss Islington (bot) in branch '3.10':
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326)
https://github.com/python/cpython/commit/6630952cf0955d205e48874a53b69868c97b8875
msg410003 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-07 19:01
New changeset c55616cf936bd8497d9ff321c03f7379f5f78a0e by Miss Islington (bot) in branch '3.9':
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326) (GH-30460)
https://github.com/python/cpython/commit/c55616cf936bd8497d9ff321c03f7379f5f78a0e
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90374
2022-01-07 19:01:54iritkatrielsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-01-07 19:01:30iritkatrielsetmessages: + msg410003
2022-01-07 18:50:17miss-islingtonsetmessages: + msg409999
2022-01-07 18:28:25miss-islingtonsetpull_requests: + pull_request28663
2022-01-07 18:28:21miss-islingtonsetpull_requests: + pull_request28662
2022-01-07 18:28:19miss-islingtonsetnosy: + miss-islington
messages: + msg409992
2022-01-01 14:20:11iritkatrielsettype: behavior
versions: - Python 3.6, Python 3.7, Python 3.8
2022-01-01 14:18:58iritkatrielsetkeywords: + patch
nosy: + iritkatriel

pull_requests: + pull_request28541
stage: patch review
2022-01-01 00:00:50emery.bergercreate