]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Expand on soft keywords in the docs for keyword.py (GH-29139) (GH-29195)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Nov 2021 16:23:03 +0000 (08:23 -0800)
committerGitHub <noreply@github.com>
Thu, 18 Nov 2021 16:23:03 +0000 (17:23 +0100)
Add link at the top and fix the existing links to point to the "[soft keywords](https://docs.python.org/3.10/reference/lexical_analysis.htmlGH-soft-keywords)" section created in the Python 3.10 docs.

(cherry picked from commit 9e05da62241877a871c7b22ef723d7028ce03c90)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
Doc/library/keyword.rst

index 5cae79f5dc9dbce3e0d40da5b2648eed12f38d53..c3b4699cb05af6ef5742337903de79c2ef3e6bf5 100644 (file)
@@ -9,7 +9,7 @@
 --------------
 
 This module allows a Python program to determine if a string is a
-:ref:`keyword <keywords>`.
+:ref:`keyword <keywords>` or :ref:`soft keyword <soft-keywords>`.
 
 
 .. function:: iskeyword(s)
@@ -26,14 +26,14 @@ This module allows a Python program to determine if a string is a
 
 .. function:: issoftkeyword(s)
 
-   Return ``True`` if *s* is a Python soft :ref:`keyword <keywords>`.
+   Return ``True`` if *s* is a Python :ref:`soft keyword <soft-keywords>`.
 
    .. versionadded:: 3.9
 
 
 .. data:: softkwlist
 
-   Sequence containing all the soft :ref:`keywords <keywords>` defined for the
+   Sequence containing all the :ref:`soft keywords <soft-keywords>` defined for the
    interpreter.  If any soft keywords are defined to only be active when particular
    :mod:`__future__` statements are in effect, these will be included as well.