Skip to content

Commit 02531f1

Browse files
[doc] Expand on soft keywords in the docs for keyword.py (GH-29139) (GH-29195)
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 9e05da6) Co-authored-by: William Andrea <william.j.andrea@gmail.com>
1 parent 6d66de9 commit 02531f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/keyword.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--------------
1010

1111
This module allows a Python program to determine if a string is a
12-
:ref:`keyword <keywords>`.
12+
:ref:`keyword <keywords>` or :ref:`soft keyword <soft-keywords>`.
1313

1414

1515
.. function:: iskeyword(s)
@@ -26,14 +26,14 @@ This module allows a Python program to determine if a string is a
2626

2727
.. function:: issoftkeyword(s)
2828

29-
Return ``True`` if *s* is a Python soft :ref:`keyword <keywords>`.
29+
Return ``True`` if *s* is a Python :ref:`soft keyword <soft-keywords>`.
3030

3131
.. versionadded:: 3.9
3232

3333

3434
.. data:: softkwlist
3535

36-
Sequence containing all the soft :ref:`keywords <keywords>` defined for the
36+
Sequence containing all the :ref:`soft keywords <soft-keywords>` defined for the
3737
interpreter. If any soft keywords are defined to only be active when particular
3838
:mod:`__future__` statements are in effect, these will be included as well.
3939

0 commit comments

Comments
 (0)