diff options
author | William Andrea <william.j.andrea@gmail.com> | 2021-10-23 16:24:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 16:24:02 (GMT) |
commit | 9e05da62241877a871c7b22ef723d7028ce03c90 (patch) | |
tree | 9768d8336066a98d71e95e13f7555af1ac49302f /Doc | |
parent | 8ce20bbdd6d2b1277a5e74154fcdcef2cb0fee49 (diff) | |
download | cpython-9e05da62241877a871c7b22ef723d7028ce03c90.zip cpython-9e05da62241877a871c7b22ef723d7028ce03c90.tar.gz cpython-9e05da62241877a871c7b22ef723d7028ce03c90.tar.bz2 |
Expand about soft keywords in the docs for keyword.py (GH-29139)
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.html#soft-keywords)" section created in the Python 3.10 docs.
Changes should be backported to 3.10 as well.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/keyword.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst index 5cae79f..c3b4699 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. |