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

miss-islington webhook-mailer at python.org
Tue Mar 21 18:06:17 EDT 2023


https://github.com/python/cpython/commit/1eb9b2492907979493af04563a7c0baef374f69a
commit: 1eb9b2492907979493af04563a7c0baef374f69a
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-03-21T15:06:10-07:00
summary:

Add link to `sys.exit` function documentation (GH-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>

---------

(cherry picked from commit 41ef502d740b96ca6333a2d0202df7cce4a84e7d)

Co-authored-by: David Poirier <1152277+david-poirier at users.noreply.github.com>
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 e3e20510f809..7b7ab860da8d 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3732,7 +3732,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