[Python-checkins] Add link to `sys.exit` function documentation (#102805)

ezio-melotti webhook-mailer at python.org
Tue Mar 21 17:58:43 EDT 2023


https://github.com/python/cpython/commit/41ef502d740b96ca6333a2d0202df7cce4a84e7d
commit: 41ef502d740b96ca6333a2d0202df7cce4a84e7d
branch: main
author: David Poirier <1152277+david-poirier at users.noreply.github.com>
committer: ezio-melotti <ezio.melotti at gmail.com>
date: 2023-03-22T06:58:31+09:00
summary:

Add link to `sys.exit` function documentation (#102805)

* Add link to `sys.exit` function documentation

* Update Doc/library/os.rst

Co-authored-by: Ezio Melotti <ezio.melotti at gmail.com>

* Update Doc/library/os.rst

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach at Gerlach.CAM>

---------

Co-authored-by: Ezio Melotti <ezio.melotti at gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach at Gerlach.CAM>

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 3153f79e10ce..7bb501c59468 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3951,7 +3951,7 @@ to be ignored.
 
    .. note::
 
-      The standard way to exit is ``sys.exit(n)``.  :func:`_exit` should
+      The standard way to exit is :func:`sys.exit(n) <sys.exit>`.  :func:`!_exit` should
       normally only be used in the child process after a :func:`fork`.
 
 The following exit codes are defined and can be used with :func:`_exit`,



More information about the Python-checkins mailing list