From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 21 Mar 2023 22:05:32 +0000 (-0700) Subject: Add link to `sys.exit` function documentation (GH-102805) X-Git-Tag: v3.10.11~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21b94028efc4388a43773bea877a28cf563fab70;p=thirdparty%2FPython%2Fcpython.git 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 * Update Doc/library/os.rst Co-authored-by: C.A.M. Gerlach --------- (cherry picked from commit 41ef502d740b96ca6333a2d0202df7cce4a84e7d) Co-authored-by: David Poirier <1152277+david-poirier@users.noreply.github.com> Co-authored-by: Ezio Melotti Co-authored-by: C.A.M. Gerlach --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 1f1e2fd31454..28990c216af3 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3658,7 +3658,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) `. :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`,