Skip to content

Commit 6630952

Browse files
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326)
Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 9b7aa6a) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent 9d18045 commit 6630952

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/library/os.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4244,20 +4244,20 @@ written in Python, such as a mail server's external command delivery program.
42444244
Returns the current global process times.
42454245
The return value is an object with five attributes:
42464246

4247-
* :attr:`user` - user time
4248-
* :attr:`system` - system time
4249-
* :attr:`children_user` - user time of all child processes
4250-
* :attr:`children_system` - system time of all child processes
4251-
* :attr:`elapsed` - elapsed real time since a fixed point in the past
4247+
* :attr:`!user` - user time
4248+
* :attr:`!system` - system time
4249+
* :attr:`!children_user` - user time of all child processes
4250+
* :attr:`!children_system` - system time of all child processes
4251+
* :attr:`!elapsed` - elapsed real time since a fixed point in the past
42524252

42534253
For backwards compatibility, this object also behaves like a five-tuple
4254-
containing :attr:`user`, :attr:`system`, :attr:`children_user`,
4255-
:attr:`children_system`, and :attr:`elapsed` in that order.
4254+
containing :attr:`!user`, :attr:`!system`, :attr:`!children_user`,
4255+
:attr:`!children_system`, and :attr:`!elapsed` in that order.
42564256

42574257
See the Unix manual page
42584258
:manpage:`times(2)` and :manpage:`times(3)` manual page on Unix or `the GetProcessTimes MSDN
42594259
<https://docs.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocesstimes>`_
4260-
on Windows. On Windows, only :attr:`user` and :attr:`system` are known; the other attributes are zero.
4260+
on Windows. On Windows, only :attr:`!user` and :attr:`!system` are known; the other attributes are zero.
42614261

42624262
.. availability:: Unix, Windows.
42634263

0 commit comments

Comments
 (0)