From bd95d7de7550889c7d6f53bd2719cb44ba57b3eb Mon Sep 17 00:00:00 2001 From: William Andrea Date: Thu, 21 Oct 2021 17:43:53 -0400 Subject: [PATCH] Expand about soft keywords Add link at the top and fix the existing links to point to the "soft keywords" section created in the Python 3.10 docs: https://docs.python.org/3.10/reference/lexical_analysis.html#soft-keywords --- Doc/library/keyword.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst index 5cae79f5dc9dbc..c3b4699cb05af6 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 `. +:ref:`keyword ` or :ref:`soft keyword `. .. 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 `. + Return ``True`` if *s* is a Python :ref:`soft keyword `. .. versionadded:: 3.9 .. data:: softkwlist - Sequence containing all the soft :ref:`keywords ` defined for the + Sequence containing all the :ref:`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.