From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 7 Jan 2022 19:01:26 +0000 (-0800) Subject: bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326... X-Git-Tag: v3.9.10~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c55616cf936bd8497d9ff321c03f7379f5f78a0e;p=thirdparty%2FPython%2Fcpython.git bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326) (GH-30460) Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 9b7aa6a9d678ba798c57fa5bbc800014dfe4fb91) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index d4cc296fbf89..f8d567af4846 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3998,20 +3998,20 @@ written in Python, such as a mail server's external command delivery program. Returns the current global process times. The return value is an object with five attributes: - * :attr:`user` - user time - * :attr:`system` - system time - * :attr:`children_user` - user time of all child processes - * :attr:`children_system` - system time of all child processes - * :attr:`elapsed` - elapsed real time since a fixed point in the past + * :attr:`!user` - user time + * :attr:`!system` - system time + * :attr:`!children_user` - user time of all child processes + * :attr:`!children_system` - system time of all child processes + * :attr:`!elapsed` - elapsed real time since a fixed point in the past For backwards compatibility, this object also behaves like a five-tuple - containing :attr:`user`, :attr:`system`, :attr:`children_user`, - :attr:`children_system`, and :attr:`elapsed` in that order. + containing :attr:`!user`, :attr:`!system`, :attr:`!children_user`, + :attr:`!children_system`, and :attr:`!elapsed` in that order. See the Unix manual page :manpage:`times(2)` and :manpage:`times(3)` manual page on Unix or `the GetProcessTimes MSDN `_ - on Windows. On Windows, only :attr:`user` and :attr:`system` are known; the other attributes are zero. + on Windows. On Windows, only :attr:`!user` and :attr:`!system` are known; the other attributes are zero. .. availability:: Unix, Windows.