[Python-checkins] [doc] Expand on soft keywords in the docs for keyword.py (GH-29139) (GH-29195)

ambv webhook-mailer at python.org
Thu Nov 18 11:23:18 EST 2021


https://github.com/python/cpython/commit/02531f1d7e59dcb0ae284bf83b62b5b908542a72
commit: 02531f1d7e59dcb0ae284bf83b62b5b908542a72
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-11-18T17:23:03+01:00
summary:

[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 9e05da62241877a871c7b22ef723d7028ce03c90)

Co-authored-by: William Andrea <william.j.andrea at gmail.com>

files:
M Doc/library/keyword.rst

diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst
index 5cae79f5dc9db..c3b4699cb05af 100644
--- a/Doc/library/keyword.rst
+++ b/Doc/library/keyword.rst
@@ -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.
 



More information about the Python-checkins mailing list